Skip to content

Commit

Permalink
banner style fix (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau authored Feb 21, 2023
1 parent e2d9077 commit 5101014
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
8 changes: 7 additions & 1 deletion web/src/components/alerts/banner.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.netobserv-alert {
margin: 1em;
margin: 1.5rem;
}

.netobserv-alerts-container {
position: absolute;
width: -webkit-fill-available;
z-index: 999;
}
12 changes: 7 additions & 5 deletions web/src/components/alerts/fetcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ export const AlertFetcher: React.FC<AlertFetcherProps> = ({ children }) => {
return;
}, []);
return (
<div>
{alerts.map(a => (
<AlertBanner key={a.name} rule={a} onDelete={() => setAlerts(alerts.filter(alert => alert.name != a.name))} />
))}
<>
<div className="netobserv-alerts-container">
{alerts.map(a => (
<AlertBanner key={a.name} rule={a} onDelete={() => setAlerts(alerts.filter(alert => alert.name != a.name))} />
))}
</div>
{!!children ? children : ''}
</div>
</>
);
};

Expand Down

0 comments on commit 5101014

Please sign in to comment.