mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-09 16:53:36 -05:00
fix: change conditions for corners on header
This commit is contained in:
parent
85bd84713e
commit
b065fba6a4
2 changed files with 2 additions and 6 deletions
|
@ -80,6 +80,7 @@ const Header = styled.div<Props>`
|
|||
props.borders &&
|
||||
css`
|
||||
border-start-start-radius: 8px;
|
||||
border-end-start-radius: 8px;
|
||||
`}
|
||||
`;
|
||||
|
||||
|
|
|
@ -79,7 +79,6 @@ const Routes = styled.div.attrs({ "data-component": "routes" })<{
|
|||
|
||||
export default function App() {
|
||||
const path = useLocation().pathname;
|
||||
const layout = useApplicationState().layout;
|
||||
const fixedBottomNav =
|
||||
path === "/" || path === "/settings" || path.startsWith("/friends");
|
||||
const inChannel = path.includes("/channel");
|
||||
|
@ -122,11 +121,7 @@ export default function App() {
|
|||
height: 50,
|
||||
}}
|
||||
docked={isTouchscreenDevice ? Docked.None : Docked.Left}>
|
||||
<Routes
|
||||
borders={
|
||||
!layout.getSectionState(SIDEBAR_CHANNELS, true) &&
|
||||
inServer
|
||||
}>
|
||||
<Routes borders={inServer}>
|
||||
<Switch>
|
||||
<Route
|
||||
path="/server/:server/channel/:channel/settings/:page"
|
||||
|
|
Loading…
Reference in a new issue