diff --git a/web/src/components/ActionBar.js b/web/src/components/ActionBar.js index 0580647..a2e8689 100644 --- a/web/src/components/ActionBar.js +++ b/web/src/components/ActionBar.js @@ -12,7 +12,11 @@ const ActionBar = (props) => { ? props.selectedSubscription.shortUrl() : "ntfy"; return ( - + Navigation + ml: { sm: `${Navigation.width}px` } + }}> { > - {title} + + {title} + {props.selectedSubscription !== null && { ); }; +/* + To add a top left corner logo box: + + ntfy + + + To make the size of the top bar dynamic based on the drawer: + width: { sm: `calc(100% - ${Navigation.width}px)` } +*/ + export default ActionBar; diff --git a/web/src/components/App.js b/web/src/components/App.js index d22bd80..ca4864e 100644 --- a/web/src/components/App.js +++ b/web/src/components/App.js @@ -23,7 +23,6 @@ import notificationManager from "../app/NotificationManager"; // TODO embed into ntfy server // TODO remember selected subscription // TODO since= -// TODO top left corner const App = () => { console.log(`[App] Rendering main view`); diff --git a/web/src/components/Navigation.js b/web/src/components/Navigation.js index c154be5..e5ec942 100644 --- a/web/src/components/Navigation.js +++ b/web/src/components/Navigation.js @@ -11,7 +11,7 @@ import List from "@mui/material/List"; import SettingsIcon from "@mui/icons-material/Settings"; import AddIcon from "@mui/icons-material/Add"; import SubscribeDialog from "./SubscribeDialog"; -import {Alert, AlertTitle} from "@mui/material"; +import {Alert, AlertTitle, ListSubheader} from "@mui/material"; import Button from "@mui/material/Button"; import Typography from "@mui/material/Typography"; @@ -66,10 +66,11 @@ const NavList = (props) => { return ( <> - + {showGrantPermissionsBox && <> - Notifications are disabled @@ -84,17 +85,20 @@ const NavList = (props) => { Grant now + } {showSubscriptionsList && <> - + + Subscribed topics + + } -