Hidden parts of the feed tabs and the megamenu are left out instead of hidden
Build / Build (push) Successful in 33s
Build / Build (push) Successful in 33s
A feed tab's name and the megamenu's toggle are now only rendered where they show, rather than rendered and then hidden by a class, so nothing runs or ships for a part no one sees. The validator hint and the phone menu keep their hiding class on purpose: the browser reveals the first, and the second is also the desktop sidebar. The house-rules checks move to 1.1.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W4YtEJrgxG12Pc39Fai8Bd
This commit is contained in:
1 parent
dca046e27d
commit
e150b12437
4 files changed
+23
-5
No files matched your search
@@ -5,9 +5,15 @@
|
||||
Escape are the browser's. The root is a popover too: with Responsive it turns, below sm, into a vertical menu that
|
||||
the toggle button opens. daisyUI supports at most 10 items. text-inherit undoes the browser's popover CanvasText
|
||||
colour, which daisyUI resets for dropdowns but not here. *@
|
||||
@if (Responsive || Direction == DDirection.Vertical)
|
||||
@if (Direction == DDirection.Vertical)
|
||||
{
|
||||
<button type="button" class="@Cx("btn", Direction == DDirection.Vertical ? null : "sm:hidden", ToggleClass)" popovertarget="@uid">
|
||||
<button type="button" class="@Cx("btn", ToggleClass)" popovertarget="@uid">
|
||||
@ToggleText
|
||||
</button>
|
||||
}
|
||||
else if (Responsive)
|
||||
{
|
||||
<button type="button" class="btn sm:hidden @ToggleClass" popovertarget="@uid">
|
||||
@ToggleText
|
||||
</button>
|
||||
}
|
||||
|
||||
@@ -17,7 +17,14 @@
|
||||
<DTab Class="gap-1 whitespace-nowrap" AccessibleName="@TabName(type)">
|
||||
<Header>
|
||||
<i class="@type.GetTimelineTypeIcon()" aria-hidden="true"></i>
|
||||
<span class="@(type == Filter.TimelineType ? null : "hidden max-md:inline xl:inline")">@TabName(type)</span>
|
||||
@if (type == Filter.TimelineType)
|
||||
{
|
||||
<span>@TabName(type)</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="hidden max-md:inline xl:inline">@TabName(type)</span>
|
||||
}
|
||||
@if (type is TimelineType.Notifications && UnreadNotifications > 0)
|
||||
{
|
||||
<DBadge Size="DSize.Xs" Color="DColor.Primary" title="@Localizer["{0} unread", UnreadNotifications]" data-unread>@UnreadNotifications</DBadge>
|
||||
|
||||
Reference in new issue
Block a user