fix(GRO-564): prevent admin nav logout button overflow

fix(GRO-564): prevent admin nav logout button overflow
This commit was merged in pull request #266.
This commit is contained in:
groombook-cto[bot]
2026-04-12 02:31:46 +00:00
committed by GitHub
+12 -2
View File
@@ -210,6 +210,7 @@ function AdminLayout() {
alignItems: "center", alignItems: "center",
gap: 8, gap: 8,
marginRight: "1.25rem", marginRight: "1.25rem",
flexShrink: 0,
}}> }}>
{logoSrc && ( {logoSrc && (
<img src={logoSrc} alt="" style={{ width: 24, height: 24, objectFit: "contain" }} /> <img src={logoSrc} alt="" style={{ width: 24, height: 24, objectFit: "contain" }} />
@@ -223,6 +224,13 @@ function AdminLayout() {
</strong> </strong>
</div> </div>
<GlobalSearch /> <GlobalSearch />
<div style={{
display: "flex",
overflowX: "auto",
flex: 1,
minWidth: 0,
gap: "0.25rem",
}}>
<Link <Link
to="/admin/book" to="/admin/book"
style={{ style={{
@@ -233,8 +241,8 @@ function AdminLayout() {
fontWeight: 600, fontWeight: 600,
color: "#fff", color: "#fff",
background: branding.primaryColor, background: branding.primaryColor,
marginRight: "0.5rem",
boxShadow: "0 1px 2px rgba(79, 138, 111, 0.3)", boxShadow: "0 1px 2px rgba(79, 138, 111, 0.3)",
flexShrink: 0,
}} }}
> >
Book Book
@@ -256,19 +264,21 @@ function AdminLayout() {
fontWeight: active ? 600 : 500, fontWeight: active ? 600 : 500,
color: active ? "#2d6a4f" : "#4b5563", color: active ? "#2d6a4f" : "#4b5563",
background: active ? "#ecfdf5" : "transparent", background: active ? "#ecfdf5" : "transparent",
flexShrink: 0,
}} }}
> >
{label} {label}
</Link> </Link>
); );
})} })}
</div>
<button <button
onClick={async () => { onClick={async () => {
await signOut(); await signOut();
navigate("/login"); navigate("/login");
}} }}
style={{ style={{
marginLeft: "auto", flexShrink: 0,
padding: "0.4rem 0.85rem", padding: "0.4rem 0.85rem",
borderRadius: 6, borderRadius: 6,
border: "1px solid #e2e8f0", border: "1px solid #e2e8f0",