fix: focus mode & dynamic panels on small screens (#1246)

This commit is contained in:
Aman Harwara
2022-07-11 19:21:03 +05:30
committed by GitHub
parent b025e394c1
commit 9d230d4b81
3 changed files with 70 additions and 66 deletions

View File

@@ -1,3 +1,4 @@
@media screen and (min-width: 768px) {
#navigation { #navigation {
flex: none !important; flex: none !important;
width: 10px !important; width: 10px !important;
@@ -21,3 +22,4 @@
width: 380px !important; width: 380px !important;
transition: width 0.25s; transition: width 0.25s;
} }
}

View File

@@ -33,7 +33,7 @@ const FocusModeSwitch: FunctionComponent<Props> = ({ application, onToggle, onCl
return ( return (
<> <>
<button <button
className="flex w-full cursor-pointer items-center justify-between border-0 bg-transparent px-3 py-1.5 text-left text-sm text-text hover:bg-contrast hover:text-foreground focus:bg-info-backdrop focus:bg-info-backdrop focus:shadow-none focus:shadow-none" className="flex w-full cursor-pointer items-center justify-between border-0 bg-transparent px-3 py-1.5 text-left text-sm text-text hover:bg-contrast hover:text-foreground focus:bg-info-backdrop focus:shadow-none"
onClick={toggle} onClick={toggle}
> >
<div className="flex items-center"> <div className="flex items-center">

View File

@@ -1,3 +1,4 @@
@media screen and (min-width: 768px) {
.focus-mode { .focus-mode {
.mac-desktop #editor-column { .mac-desktop #editor-column {
// To offset colored circles in Mac // To offset colored circles in Mac
@@ -55,6 +56,7 @@
width: 0px !important; width: 0px !important;
} }
} }
}
.disable-focus-mode { .disable-focus-mode {
#navigation, #navigation,