🎥 Make videos programmatically with React
Elements: Add Studio-style drag tooltip
JonnyBurgerd22ba4c5164e
diff --git a/packages/docs/src/components/Elements/ElementStudioAction.module.css b/packages/docs/src/components/Elements/ElementStudioAction.module.cssindex bb7986f09a..2be6608c71 100644--- a/packages/docs/src/components/Elements/ElementStudioAction.module.css+++ b/packages/docs/src/components/Elements/ElementStudioAction.module.css@@ -13,6 +13,7 @@}.dragHandle {+ position: relative;display: flex;align-items: center;justify-content: center;@@ -29,6 +30,32 @@user-select: none;}+.dragHandle::after {+ position: absolute;+ bottom: calc(100% + 4px);+ right: 0;+ z-index: 1;+ max-width: calc(100vw - 16px);+ padding: 6px 8px;+ border-radius: 6px;+ background: #15181b;+ box-shadow: 0 -2px 8px rgb(0 0 0 / 50%);+ color: rgb(255 255 255 / 90%);+ content: attr(data-tooltip);+ font-size: 12px;+ line-height: 16px;+ opacity: 0;+ pointer-events: none;+ transition: opacity 0s linear 800ms;+ visibility: hidden;+ white-space: nowrap;+}++.dragHandle:hover::after {+ opacity: 1;+ visibility: visible;+}+.dragHandle:hover {background: rgb(0 0 0 / 8%);}diff --git a/packages/docs/src/components/Elements/ElementStudioAction.tsx b/packages/docs/src/components/Elements/ElementStudioAction.tsxindex a94d771905..f290b6ae6f 100644--- a/packages/docs/src/components/Elements/ElementStudioAction.tsx+++ b/packages/docs/src/components/Elements/ElementStudioAction.tsx@@ -51,9 +51,9 @@ export const ElementStudioAction: React.FC<{<divaria-label="Drag into Studio"className={styles.dragHandle}+ data-tooltip="Drag into Studio"draggableonDragStart={onDragStart}- title="Drag into your Studio browser tab to choose where the element is placed on the canvas or timeline"><span aria-hidden="true" className={styles.dragHandleIcon}>â ¿