fix(docker): fix logs page font size, sidebar active state, and breadcrumb translations
- Set fontSize: 14 on both docker and server logs terminals for consistency - Use startsWith for nav link active state so docker sub-pages highlight Docker - Add missing navigationStructure.manage.tools.docker.logs translation key - Pass dynamicMappings for containerId in breadcrumb to show container name
This commit is contained in:
5 files changed
+13
-11
No files matched your search
@@ -28,7 +28,7 @@ const NavLinkHref = (props: NavigationLinkHref) => {
|
||||
label={props.label}
|
||||
leftSection={props.icon}
|
||||
href={props.href}
|
||||
active={pathname === props.href}
|
||||
active={pathname === props.href || pathname.startsWith(`${props.href}/`)}
|
||||
style={{
|
||||
borderRadius: 5,
|
||||
}}
|
||||
@@ -38,7 +38,7 @@ const NavLinkHref = (props: NavigationLinkHref) => {
|
||||
|
||||
const NavLinkWithItems = (props: NavigationLinkWithItems) => {
|
||||
const pathname = usePathname();
|
||||
const isActive = props.items.some((item) => item.href === pathname);
|
||||
const isActive = props.items.some((item) => pathname === item.href || pathname.startsWith(`${item.href}/`));
|
||||
return (
|
||||
<NavLink
|
||||
style={{
|
||||
|
||||
Reference in new issue
Block a user