added user tooltip
This commit is contained in:
parent
408f09f650
commit
0131f7c499
2 changed files with 47 additions and 8 deletions
|
@ -20,17 +20,21 @@
|
||||||
|
|
||||||
@if (isUser && _usableAccounts.Count > 1 && signUp.SignUpType != SignUpType.Flex)
|
@if (isUser && _usableAccounts.Count > 1 && signUp.SignUpType != SignUpType.Flex)
|
||||||
{
|
{
|
||||||
<td>@signUp.LiebUser.Name
|
<td>
|
||||||
<select value=@signUp.GuildWars2AccountId @onchange="args => _Parent.ChangeAccount(args)">
|
<select value=@signUp.GuildWars2AccountId @onchange="args => _Parent.ChangeAccount(args)">
|
||||||
@foreach (var account in _usableAccounts)
|
@foreach (var account in _usableAccounts)
|
||||||
{
|
{
|
||||||
<option value=@account.GuildWars2AccountId>@account.AccountName</option>
|
<option value=@account.GuildWars2AccountId>@account.AccountName</option>
|
||||||
}
|
}
|
||||||
</select> @signUpStatus </td>
|
</select> @signUpStatus
|
||||||
|
</td>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<td>@signUp.LiebUser.Name (@signUp.GuildWars2Account.AccountName) @signUpStatus</td>
|
<td class="nametooltip">
|
||||||
|
@signUp.GuildWars2Account.AccountName @signUpStatus
|
||||||
|
<span class="tooltiptext">@signUp.LiebUser.Name</span>
|
||||||
|
</td>
|
||||||
}
|
}
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
|
|
35
Lieb/Pages/Raids/SignedUpUsers.razor.css
Normal file
35
Lieb/Pages/Raids/SignedUpUsers.razor.css
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
|
||||||
|
.nametooltip {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
border-bottom: 1px dotted black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nametooltip .tooltiptext {
|
||||||
|
visibility: hidden;
|
||||||
|
width: 120px;
|
||||||
|
background-color: black;
|
||||||
|
color: #fff;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 5px 0;
|
||||||
|
position: absolute;
|
||||||
|
z-index: 1;
|
||||||
|
top: -5px;
|
||||||
|
right: 110%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nametooltip .tooltiptext::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 100%;
|
||||||
|
margin-top: -5px;
|
||||||
|
border-width: 5px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: transparent transparent transparent black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nametooltip:hover .tooltiptext {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue