Resizer: Show only on desktops (#3180)
This commit is contained in:
parent
a9d9392d8c
commit
c16f9317f1
@ -339,3 +339,13 @@
|
|||||||
background: unset;
|
background: unset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.resize-handle {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
bottom: 0;
|
||||||
|
width: 0.25rem;
|
||||||
|
z-index: var(--z-resize-handle);
|
||||||
|
cursor: var(--custom-cursor, ew-resize);
|
||||||
|
}
|
||||||
|
|||||||
@ -208,7 +208,7 @@ function MiddleColumn({
|
|||||||
} = getActions();
|
} = getActions();
|
||||||
|
|
||||||
const { width: windowWidth } = useWindowSize();
|
const { width: windowWidth } = useWindowSize();
|
||||||
const { isTablet } = useAppLayout();
|
const { isTablet, isDesktop } = useAppLayout();
|
||||||
|
|
||||||
const lang = useLang();
|
const lang = useLang();
|
||||||
const [dropAreaState, setDropAreaState] = useState(DropAreaState.None);
|
const [dropAreaState, setDropAreaState] = useState(DropAreaState.None);
|
||||||
@ -464,12 +464,14 @@ function MiddleColumn({
|
|||||||
`}
|
`}
|
||||||
onClick={(isTablet && isLeftColumnShown) ? handleTabletFocus : undefined}
|
onClick={(isTablet && isLeftColumnShown) ? handleTabletFocus : undefined}
|
||||||
>
|
>
|
||||||
<div
|
{isDesktop && (
|
||||||
className="resize-handle"
|
<div
|
||||||
onMouseDown={initResize}
|
className="resize-handle"
|
||||||
onMouseUp={handleMouseUp}
|
onMouseDown={initResize}
|
||||||
onDoubleClick={resetResize}
|
onMouseUp={handleMouseUp}
|
||||||
/>
|
onDoubleClick={resetResize}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
<div
|
<div
|
||||||
className={bgClassName}
|
className={bgClassName}
|
||||||
style={customBackgroundValue ? `--custom-background: ${customBackgroundValue}` : undefined}
|
style={customBackgroundValue ? `--custom-background: ${customBackgroundValue}` : undefined}
|
||||||
|
|||||||
@ -111,26 +111,6 @@ body.cursor-ew-resize {
|
|||||||
-webkit-user-select: none !important;
|
-webkit-user-select: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.resize-handle {
|
|
||||||
position: fixed;
|
|
||||||
display: none;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 0;
|
|
||||||
height: 0;
|
|
||||||
z-index: -1;
|
|
||||||
|
|
||||||
@media (min-width: 926px) {
|
|
||||||
position: absolute;
|
|
||||||
display: block;
|
|
||||||
height: auto;
|
|
||||||
bottom: 0;
|
|
||||||
width: 0.25rem;
|
|
||||||
z-index: var(--z-resize-handle);
|
|
||||||
cursor: var(--custom-cursor, ew-resize);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.clearfix::after {
|
.clearfix::after {
|
||||||
content: "";
|
content: "";
|
||||||
clear: both;
|
clear: both;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user