Virtual whiteboard for sketching hand-drawn like diagrams
RTL for the security badge, add an arrow to the tooltip (#1469)
Jed Foxd7729d295a26
diff --git a/src/components/LayerUI.scss b/src/components/LayerUI.scssindex b8d2e6670e..1ffda3c74b 100644--- a/src/components/LayerUI.scss+++ b/src/components/LayerUI.scss@@ -3,7 +3,7 @@.layer-ui__wrapper {.encrypted-icon {position: relative;- margin-left: 15px;+ margin-inline-start: 15px;display: flex;justify-content: center;align-items: center;@@ -18,8 +18,13 @@&.tooltip .tooltip-text {visibility: hidden;width: 20rem;- bottom: calc(50% + 0.8rem);- left: -5px;+ bottom: calc(50% + 0.8rem + 6px);+ :root[dir="ltr"] & {+ left: -5px;+ }+ :root[dir="rtl"] & {+ right: -5px;+ }background-color: $oc-black;color: $oc-white;text-align: center;@@ -30,6 +35,21 @@font-size: 13px;line-height: 1.5;white-space: pre-wrap;++ &::after {+ --size: 6px;+ content: "";+ border: var(--size) solid transparent;+ border-top-color: $oc-black;+ position: absolute;+ bottom: calc(-2 * var(--size));+ :root[dir="ltr"] & {+ left: calc(5px + var(--size) / 2);+ }+ :root[dir="rtl"] & {+ right: calc(5px + var(--size) / 2);+ }+ }}// the following 3 rules ensure that the tooltip doesn't show (nor affectdiff --git a/src/components/LayerUI.tsx b/src/components/LayerUI.tsxindex 2e482db929..befac6c2f0 100644--- a/src/components/LayerUI.tsx+++ b/src/components/LayerUI.tsx@@ -63,7 +63,9 @@ const LayerUI = ({target="_blank"rel="noopener noreferrer">- <span className="tooltip-text">{t("encrypted.tooltip")}</span>+ <span className="tooltip-text" dir="auto">+ {t("encrypted.tooltip")}+ </span>{shield}</a>);