Skip to content

Commit 01eee47

Browse files
committed
live-web-view: Updates to fullscreen styling and navigation active link selection.
1 parent 4fd507a commit 01eee47

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/live-web-view/layout/style/fullscreen.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@
55
&FullScreen&.vh-center{
66
@apply items-center justify-center;
77
}
8-
98
&FullScreen&.pad-topnav{
109
@apply pt-[3rem];
1110
}
11+
&FullScreen&.top-space-nav{
12+
@apply h-[calc(100vh-3rem)];
13+
}
14+
&FullScreen&.top-space-10{
15+
@apply h-[calc(100vh-2.5rem)];
16+
}
1217

1318
&FullScreen .responsive {
1419
@apply absolute min-w-full min-h-full object-cover;

packages/live-web-view/navigation/NavSections.lv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ component NavSections < Div{
4343
}
4444
} else {
4545
return Li{
46-
A{ href: link.href classes: [active === link.href ? 'active' : '']
46+
A{ href: link.href classes: [active && link.href.endsWith(active) ? 'active' : '']
4747
T{ text: link.label }
4848
}
4949
}

0 commit comments

Comments
 (0)