mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-26 07:22:10 -05:00
fix: allow home button to be flush with background by removing border when not in server
This commit is contained in:
parent
504d882df8
commit
85bd84713e
1 changed files with 3 additions and 1 deletions
|
@ -83,6 +83,7 @@ export default function App() {
|
|||
const fixedBottomNav =
|
||||
path === "/" || path === "/settings" || path.startsWith("/friends");
|
||||
const inChannel = path.includes("/channel");
|
||||
const inServer = path.includes("/server");
|
||||
const inSpecial =
|
||||
(path.startsWith("/friends") && isTouchscreenDevice) ||
|
||||
path.startsWith("/invite") ||
|
||||
|
@ -123,7 +124,8 @@ export default function App() {
|
|||
docked={isTouchscreenDevice ? Docked.None : Docked.Left}>
|
||||
<Routes
|
||||
borders={
|
||||
!layout.getSectionState(SIDEBAR_CHANNELS, true)
|
||||
!layout.getSectionState(SIDEBAR_CHANNELS, true) &&
|
||||
inServer
|
||||
}>
|
||||
<Switch>
|
||||
<Route
|
||||
|
|
Loading…
Reference in a new issue