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,52 +11,33 @@
|
|||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
.__mobile__navmenu_item {
|
||||||
width: 100%;
|
display: flex;
|
||||||
height: @app_topBar_height;
|
flex-direction: column;
|
||||||
|
|
||||||
display: flex;
|
align-items: center;
|
||||||
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;
|
|
||||||
flex-direction: column;
|
|
||||||
|
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
height: fit-content;
|
|
||||||
|
|
||||||
gap: 4px;
|
|
||||||
|
|
||||||
padding: 8px 10px;
|
|
||||||
|
|
||||||
&.active {
|
|
||||||
color: var(--colorPrimary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon {
|
|
||||||
margin: 0;
|
|
||||||
line-height: 1rem;
|
|
||||||
font-size: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.label {
|
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
line-height: 1rem;
|
|
||||||
font-size: 0.8rem;
|
gap: 4px;
|
||||||
|
|
||||||
|
padding: 8px 10px;
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
color: var(--colorPrimary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
margin: 0;
|
||||||
|
line-height: 1rem;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.label {
|
||||||
|
height: fit-content;
|
||||||
|
line-height: 1rem;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -31,11 +31,15 @@ export class PagePanelWithNavMenu extends React.Component {
|
|||||||
primaryPanelRef = React.createRef()
|
primaryPanelRef = React.createRef()
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
app.layout.top_bar.shouldUseTopBarSpacer(false)
|
if (app.isMobile) {
|
||||||
|
app.layout.top_bar.shouldUseTopBarSpacer(false)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
app.layout.top_bar.shouldUseTopBarSpacer(true)
|
if (app.isMobile) {
|
||||||
|
app.layout.top_bar.shouldUseTopBarSpacer(true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
renderActiveTab() {
|
renderActiveTab() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user