Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions webui/src/lib/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const Layout: FC<{logged: boolean}> = ({ logged }) => {

return (
<>
{/* Sticky license/banner alert placeholder (conditionally rendered in Enterprise) */}
<div id="license-banner-placeholder" className="license-banner-sticky" style={{display: 'none'}}></div>
<TopNav logged={isLogged}/>
<div className="main-app">
<StorageConfigProvider>
Expand Down
2 changes: 1 addition & 1 deletion webui/src/lib/components/navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const TopNav = ({logged = true}) => {
);
}
return (
<Navbar variant="dark" bg="dark" expand="md" className="border-bottom">
<Navbar variant="dark" bg="dark" expand="md" className="border-bottom navbar-sticky">
<Container fluid={true}>
<Link component={Navbar.Brand} href="/">
<img src="/logo.png" alt="lakeFS" className="logo"/>
Expand Down
21 changes: 21 additions & 0 deletions webui/src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -933,4 +933,25 @@ td.entry-type-indicator {
.geojson-map-container {
height: 100%;
width: 100%;
}

/* Sticky license/banner alert (Enterprise only, placeholder in OSS) */
.license-banner-sticky {
position: sticky;
top: 0;
z-index: 1030;
width: 100%;
}

/* Sticky navbar below the banner */
.navbar-sticky {
position: sticky;
top: 0;
z-index: 1020;
width: 100%;
}

/* If the license banner is visible, push the navbar down */
.license-banner-sticky:has(+ .navbar-sticky) + .navbar-sticky {
top: 48px; /* Adjust to banner height if needed */
}