Show/hide the switch-view button based on viewport width
This commit is contained in:
parent
4efc922b7b
commit
087e282677
|
@ -928,10 +928,13 @@ a[href^='http'][rel*='nofollow']:visited:not(:has(div)) {
|
||||||
.deck-backdrop .deck .status {
|
.deck-backdrop .deck .status {
|
||||||
max-width: var(--main-width);
|
max-width: var(--main-width);
|
||||||
}
|
}
|
||||||
.deck-backdrop .deck .menu-switch-view {
|
.deck-backdrop .deck :is(.button-switch-view, menu-switch-view) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@media (min-width: 40em) {
|
@media (min-width: 40em) {
|
||||||
|
.deck-backdrop .deck .button-switch-view {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
.deck-backdrop .deck .menu-switch-view {
|
.deck-backdrop .deck .menu-switch-view {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1003,7 +1003,7 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) {
|
||||||
<div class="header-side">
|
<div class="header-side">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="plain4"
|
class="plain4 button-switch-view"
|
||||||
style={{
|
style={{
|
||||||
display: viewMode === 'full' ? '' : 'none',
|
display: viewMode === 'full' ? '' : 'none',
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in a new issue