mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 19:14:16 +00:00
fix style for desktop
This commit is contained in:
parent
bf3eeaa4f1
commit
ebb58fba09
@ -34,7 +34,7 @@ const NavMenuMobile = (props) => {
|
|||||||
return <antd.Button
|
return <antd.Button
|
||||||
key={item.key}
|
key={item.key}
|
||||||
className={classnames(
|
className={classnames(
|
||||||
"card_item",
|
"__mobile__navmenu_item",
|
||||||
item.key === props.activeKey && "active",
|
item.key === props.activeKey && "active",
|
||||||
)}
|
)}
|
||||||
onClick={() => props.onClickItem(item.key)}
|
onClick={() => props.onClickItem(item.key)}
|
||||||
|
@ -11,28 +11,8 @@
|
|||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
.__mobile__navmenu_item {
|
||||||
width: 100%;
|
|
||||||
height: @app_topBar_height;
|
|
||||||
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
|
|
||||||
justify-content: space-evenly;
|
|
||||||
|
|
||||||
box-shadow: @card-shadow;
|
|
||||||
|
|
||||||
gap: 10px;
|
|
||||||
padding: 5px;
|
|
||||||
border-radius: 12px;
|
|
||||||
|
|
||||||
isolation: unset;
|
|
||||||
overflow: visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card_item {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
@ -60,3 +40,4 @@
|
|||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
@ -31,12 +31,16 @@ export class PagePanelWithNavMenu extends React.Component {
|
|||||||
primaryPanelRef = React.createRef()
|
primaryPanelRef = React.createRef()
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
if (app.isMobile) {
|
||||||
app.layout.top_bar.shouldUseTopBarSpacer(false)
|
app.layout.top_bar.shouldUseTopBarSpacer(false)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
|
if (app.isMobile) {
|
||||||
app.layout.top_bar.shouldUseTopBarSpacer(true)
|
app.layout.top_bar.shouldUseTopBarSpacer(true)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
renderActiveTab() {
|
renderActiveTab() {
|
||||||
if (!Array.isArray(this.props.tabs)) {
|
if (!Array.isArray(this.props.tabs)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user