[frontend/pages] Add labels to top bar actions

This commit is contained in:
pancakes 2025-03-07 21:47:47 +10:00 committed by Laura Hausmann
parent be16fe8e5d
commit 805812110a
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
3 changed files with 23 additions and 4 deletions

View file

@ -68,10 +68,17 @@
} }
} }
.top-bar {
.btn span {
font-size: 0.9em;
}
}
.top-bar { .top-bar {
.action { .action {
margin-left: auto; margin-left: auto;
color: var(--notice-color); color: var(--notice-color);
text-decoration: none;
} }
} }
@ -86,3 +93,11 @@
margin-right: 0; margin-right: 0;
} }
} }
@media (max-width: 1000px) {
.top-bar {
.btn span {
display: none;
}
}
}

View file

@ -22,17 +22,20 @@
@Loc["Custom Emojis"] @Loc["Custom Emojis"]
@if (State is State.Empty or State.Loaded) @if (State is State.Empty or State.Loaded)
{ {
<span class="action btn" @onclick="OpenUpload" title="@Loc["Upload emoji"]"> <span class="action btn" @onclick="OpenUpload">
<Icon Name="Icons.Upload"/> <Icon Name="Icons.Upload"/>
<span>@Loc["Upload"]</span>
</span> </span>
<span class="action btn" @onclick="OpenImport" title="@Loc["Import emoji pack"]"> <span class="action btn" @onclick="OpenImport">
<Icon Name="Icons.FileArrowUp"/> <Icon Name="Icons.FileArrowUp"/>
<span>@Loc["Import pack"]</span>
</span> </span>
} }
@if (State is not State.Loading) @if (State is not State.Loading)
{ {
<a class="action btn" href="/mod/emojis/remote" title="@Loc["Remote emojis"]"> <a class="action btn" href="/mod/emojis/remote">
<Icon Name="Icons.ArrowSquareOut"/> <Icon Name="Icons.ArrowSquareOut"/>
<span>@Loc["Remote"]</span>
</a> </a>
} }
</SectionContent> </SectionContent>

View file

@ -20,8 +20,9 @@
@Loc["Remote Emojis"] @Loc["Remote Emojis"]
@if (State is not State.Loading) @if (State is not State.Loading)
{ {
<a class="action btn" href="/mod/emojis" title="@Loc["Local emojis"]"> <a class="action btn" href="/mod/emojis">
<Icon Name="Icons.ArrowSquareIn"/> <Icon Name="Icons.ArrowSquareIn"/>
<span>@Loc["Local"]</span>
</a> </a>
} }
</SectionContent> </SectionContent>