[frontend] Improving styling on disabled renote button
This commit is contained in:
parent
b7ed190ff2
commit
0eb94e6e4b
2 changed files with 14 additions and 4 deletions
|
@ -20,14 +20,14 @@
|
|||
<button class="btn" @onclick="Reply" @onclick:stopPropagation="true">
|
||||
<Icon Name="Icons.ArrowUUpLeft" Size="1.3em"/>
|
||||
</button>
|
||||
<button class="btn" @onclick="Renote" @onclick:stopPropagation="true">
|
||||
<button class="btn @(RenotePossible ? "" : "disabled")" @onclick="Renote" @onclick:stopPropagation="true">
|
||||
@if (RenotePossible)
|
||||
{
|
||||
<Icon Name="Icons.Repeat" Size="1.3em"/>
|
||||
}
|
||||
else
|
||||
{
|
||||
<Icon Name="Icons.Lock" Size="1.3em"/>
|
||||
<Icon ExtraClasses="faded" Name="Icons.Lock" Size="1.3em"/>
|
||||
}
|
||||
@if (Renotes > 0)
|
||||
{
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
min-width: 2.5em;
|
||||
height: 2em;
|
||||
padding: 0.75em;
|
||||
/*margin-right: 0.5em;*/
|
||||
background-color: var(--foreground-color);
|
||||
width: fit-content;
|
||||
}
|
||||
|
@ -25,3 +24,14 @@
|
|||
position: relative;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
::deep {
|
||||
.faded {
|
||||
cursor: not-allowed;
|
||||
opacity: 50%;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue