Virtual whiteboard for sketching hand-drawn like diagrams
Show hint under toolbar (#783)
Lipis949c3841ea54
diff --git a/src/components/HintViewer.css b/src/components/HintViewer.cssindex 6af44678fc..f5049b3655 100644--- a/src/components/HintViewer.css+++ b/src/components/HintViewer.css@@ -1,8 +1,12 @@.HintViewer {- position: absolute;- left: 0.5em;- bottom: 0.5em;+ background-color: rgba(255, 255, 255, 0.88);+ color: #868e96; /* OC: GRAY 6*/font-size: 0.8rem;+ left: 50%;+ pointer-events: none;+ position: absolute;+ top: 54px;+ transform: translateX(calc(-50% - 16px)); /* 16px is half of lock icon */}@media (max-width: 600px), (max-height: 500px) and (max-width: 1000px) {diff --git a/src/index.tsx b/src/index.tsxindex 2dfddab214..5d06507cd6 100644--- a/src/index.tsx+++ b/src/index.tsx@@ -518,6 +518,12 @@ const LayerUI = React.memo() : (<><FixedSideContainer side="top">+ <HintViewer+ elementType={appState.elementType}+ multiMode={appState.multiElement !== null}+ isResizing={appState.isResizing}+ elements={elements}+ /><div className="App-menu App-menu_top"><Stack.Col gap={4} align="end"><section@@ -578,12 +584,6 @@ const LayerUI = React.memo(</div></FixedSideContainer><footer role="contentinfo">- <HintViewer- elementType={appState.elementType}- multiMode={appState.multiElement !== null}- isResizing={appState.isResizing}- elements={elements}- /><LanguageListonChange={lng => {setLanguage(lng);