Fix HintViewer positioning (#2124)
This commit is contained in:
parent
730a11e0a5
commit
b215e165d2
@ -1,22 +1,31 @@
|
|||||||
@import "../css/_variables";
|
@import "../css/_variables";
|
||||||
|
|
||||||
.HintViewer {
|
.HintViewer {
|
||||||
|
pointer-events: none;
|
||||||
|
box-sizing: border-box;
|
||||||
|
position: absolute;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
left: 0;
|
||||||
|
top: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 6px;
|
||||||
|
text-align: center;
|
||||||
color: $oc-gray-6;
|
color: $oc-gray-6;
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
left: 50%;
|
|
||||||
pointer-events: none;
|
@media (min-width: 1200px) {
|
||||||
position: absolute;
|
white-space: pre;
|
||||||
top: 54px;
|
}
|
||||||
transform: translateX(calc(-50% - 16px)); /* 16px is half of lock icon */
|
|
||||||
padding: 0.2rem 0.4rem;
|
|
||||||
white-space: pre;
|
|
||||||
text-align: center;
|
|
||||||
background-color: var(--overlay-background-color);
|
|
||||||
border-radius: 4px;
|
|
||||||
|
|
||||||
@media #{$media-query} {
|
@media #{$media-query} {
|
||||||
position: static;
|
position: static;
|
||||||
transform: none;
|
}
|
||||||
margin-top: 0.5rem;
|
|
||||||
|
> span {
|
||||||
|
padding: 0.2rem 0.4rem;
|
||||||
|
background-color: var(--overlay-background-color);
|
||||||
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -431,7 +431,6 @@ const LayerUI = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<FixedSideContainer side="top">
|
<FixedSideContainer side="top">
|
||||||
<HintViewer appState={appState} elements={elements} />
|
|
||||||
<div className="App-menu App-menu_top">
|
<div className="App-menu App-menu_top">
|
||||||
<Stack.Col
|
<Stack.Col
|
||||||
gap={4}
|
gap={4}
|
||||||
@ -445,6 +444,7 @@ const LayerUI = ({
|
|||||||
<Stack.Col gap={4} align="start">
|
<Stack.Col gap={4} align="start">
|
||||||
<Stack.Row gap={1}>
|
<Stack.Row gap={1}>
|
||||||
<Island padding={1} className={zenModeEnabled && "zen-mode"}>
|
<Island padding={1} className={zenModeEnabled && "zen-mode"}>
|
||||||
|
<HintViewer appState={appState} elements={elements} />
|
||||||
{heading}
|
{heading}
|
||||||
<Stack.Row gap={1}>
|
<Stack.Row gap={1}>
|
||||||
<ShapesSwitcher
|
<ShapesSwitcher
|
||||||
|
Loading…
x
Reference in New Issue
Block a user