fix: allow home button to be flush with background by removing border when not in server

This commit is contained in:
Paul Makles 2021-12-30 19:00:41 +00:00
parent 504d882df8
commit 85bd84713e

View file

@ -83,6 +83,7 @@ export default function App() {
const fixedBottomNav = const fixedBottomNav =
path === "/" || path === "/settings" || path.startsWith("/friends"); path === "/" || path === "/settings" || path.startsWith("/friends");
const inChannel = path.includes("/channel"); const inChannel = path.includes("/channel");
const inServer = path.includes("/server");
const inSpecial = const inSpecial =
(path.startsWith("/friends") && isTouchscreenDevice) || (path.startsWith("/friends") && isTouchscreenDevice) ||
path.startsWith("/invite") || path.startsWith("/invite") ||
@ -123,7 +124,8 @@ export default function App() {
docked={isTouchscreenDevice ? Docked.None : Docked.Left}> docked={isTouchscreenDevice ? Docked.None : Docked.Left}>
<Routes <Routes
borders={ borders={
!layout.getSectionState(SIDEBAR_CHANNELS, true) !layout.getSectionState(SIDEBAR_CHANNELS, true) &&
inServer
}> }>
<Switch> <Switch>
<Route <Route