forked from abner/for-legacy-web
fix: allow home button to be flush with background by removing border when not in server
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user