diff --git a/components/plugins/PluginRemoteSurface.tsx b/components/plugins/PluginRemoteSurface.tsx index 44cd3804b..5f137524c 100644 --- a/components/plugins/PluginRemoteSurface.tsx +++ b/components/plugins/PluginRemoteSurface.tsx @@ -343,6 +343,14 @@ export function PluginRemoteSurface({ tree, css, onEvent, settled = true, loadIm ); } +const SHADOW_BASE_SCROLLBAR_CSS = [ + '*::-webkit-scrollbar{width:6px;height:6px}', + '*::-webkit-scrollbar-track,*::-webkit-scrollbar-corner{background:transparent}', + '*::-webkit-scrollbar-thumb{min-height:28px;border:1px solid transparent;border-radius:999px;background-color:transparent;background-clip:content-box}', + '*:hover::-webkit-scrollbar-thumb{background-color:hsl(var(--muted-foreground) / 0.24)}', + '*::-webkit-scrollbar-thumb:hover{background-color:hsl(var(--muted-foreground) / 0.45)}', +].join(''); + function ValidatedPluginRemoteSurface({ tree, css, onEvent, settled, depth }: { settled: boolean; depth: number; tree: { children: RemoteNode[] }; css: string; onEvent(event: PluginSurfaceEvent): void }) { const surfaceRef = useRef(null); const hostRef = useRef(null); @@ -467,8 +475,8 @@ function ValidatedPluginRemoteSurface({ tree, css, onEvent, settled, depth }: { return (
-
- {shadow && createPortal(<>{tree.children.map((node) => renderRemoteNode(node, settled))}, shadow)} +
+ {shadow && createPortal(<>{tree.children.map((node) => renderRemoteNode(node, settled))}, shadow)}
); diff --git a/components/plugins/primitives/PluginDataGrid.tsx b/components/plugins/primitives/PluginDataGrid.tsx index d885c4917..fd8ff5b1b 100644 --- a/components/plugins/primitives/PluginDataGrid.tsx +++ b/components/plugins/primitives/PluginDataGrid.tsx @@ -272,7 +272,10 @@ export function PluginDataGrid({
)} -
+
{columns.length === 0 ? (
{emptyMessage}