[frontend/components] Revert: "Fix note z-indexes"

This reverts commit b9b19b44af.
This commit is contained in:
Laura Hausmann 2025-03-24 13:17:34 +01:00
parent cd0149cfeb
commit b950cb716f
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
3 changed files with 45 additions and 54 deletions

View file

@ -45,7 +45,7 @@
}
.truncate-btn {
z-index: 1;
z-index: 5;
width: 100%;
margin-top: 0.5em;
background-color: var(--background-color);

View file

@ -86,7 +86,6 @@
</button>
<button @ref="MenuButton" class="btn" @onclick="ToggleMenu" @onclick:stopPropagation="true" aria-label="more">
<Icon Name="Icons.DotsThreeOutline" Size="1.3em"/>
</button>
<Menu @ref="ContextMenu">
@if (Note.User.Id != Session.Current?.Id)
{
@ -134,6 +133,7 @@
}
<ClosingBackdrop OnClose="ContextMenu.Close"></ClosingBackdrop>
</Menu>
</button>
</div>
@code {

View file

@ -10,19 +10,11 @@
margin-bottom: 0.5em;
}
::deep {
.reactions .reaction {
position: relative;
z-index: +1;
}
}
.indent {
padding-left: 0.75em;
}
.btn {
position: relative;
display: inline-flex;
align-items: center;
min-width: 2.5em;
@ -31,7 +23,6 @@
background-color: var(--foreground-color);
border: 0.1rem solid var(--foreground-color);
width: fit-content;
z-index: +1;
}
.btn:hover {