mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-22 15:09:16 -05:00
Fix analyzer tabs not on one line
This commit is contained in:
parent
1eb1d3ef52
commit
06c04ceb0f
|
|
@ -21,7 +21,7 @@ export function SubNavLink({
|
|||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<NavLink className={"sub-nav__link__container"} end={end} {...props}>
|
||||
<NavLink className="sub-nav__link__container" end={end} {...props}>
|
||||
<div className={clsx("sub-nav__link", className)}>{children}</div>
|
||||
<div className="sub-nav__border-guy" />
|
||||
</NavLink>
|
||||
|
|
|
|||
|
|
@ -6,12 +6,16 @@ import type * as React from "react";
|
|||
export function Tabs({
|
||||
children,
|
||||
className,
|
||||
compact = false,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
className?: string;
|
||||
compact?: boolean;
|
||||
}) {
|
||||
return (
|
||||
<div className={clsx("sub-nav__container", className)}>{children}</div>
|
||||
<div className={clsx("sub-nav__container", className, { compact })}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ export default function BuildAnalyzerPage() {
|
|||
</div>
|
||||
<div className="stack md items-center w-full">
|
||||
<div className="w-full">
|
||||
<Tabs className="analyzer__sub-nav">
|
||||
<Tabs className="analyzer__sub-nav" compact>
|
||||
<Tab
|
||||
active={focused === 1}
|
||||
onClick={() => handleChange({ newFocused: 1 })}
|
||||
|
|
|
|||
|
|
@ -500,6 +500,10 @@ dialog::backdrop {
|
|||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.sub-nav__container.compact .sub-nav__link {
|
||||
padding: var(--s-1) var(--s-2);
|
||||
}
|
||||
|
||||
.sub-nav__border-guy {
|
||||
width: 78%;
|
||||
height: 3px;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user