mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-09 10:15:26 +00:00
fix: change conditions for corners on header
This commit is contained in:
@@ -80,6 +80,7 @@ const Header = styled.div<Props>`
|
|||||||
props.borders &&
|
props.borders &&
|
||||||
css`
|
css`
|
||||||
border-start-start-radius: 8px;
|
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() {
|
export default function App() {
|
||||||
const path = useLocation().pathname;
|
const path = useLocation().pathname;
|
||||||
const layout = useApplicationState().layout;
|
|
||||||
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");
|
||||||
@@ -122,11 +121,7 @@ export default function App() {
|
|||||||
height: 50,
|
height: 50,
|
||||||
}}
|
}}
|
||||||
docked={isTouchscreenDevice ? Docked.None : Docked.Left}>
|
docked={isTouchscreenDevice ? Docked.None : Docked.Left}>
|
||||||
<Routes
|
<Routes borders={inServer}>
|
||||||
borders={
|
|
||||||
!layout.getSectionState(SIDEBAR_CHANNELS, true) &&
|
|
||||||
inServer
|
|
||||||
}>
|
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route
|
<Route
|
||||||
path="/server/:server/channel/:channel/settings/:page"
|
path="/server/:server/channel/:channel/settings/:page"
|
||||||
|
|||||||
Reference in New Issue
Block a user