From 1811a1114f87770d82cfe34c9c34aa7b1eddae7f Mon Sep 17 00:00:00 2001 From: Shane Osbourne Date: Tue, 8 Oct 2024 13:59:56 +0100 Subject: [PATCH] drop styles --- .../pages/new-tab/app/favorites/Favorites.js | 2 +- .../app/favorites/Favorites.module.css | 36 ++++++++++++++++--- .../pages/new-tab/app/favorites/Tile.js | 31 ++++++++-------- 3 files changed, 48 insertions(+), 21 deletions(-) diff --git a/packages/special-pages/pages/new-tab/app/favorites/Favorites.js b/packages/special-pages/pages/new-tab/app/favorites/Favorites.js index decb2fac39..128592e8f1 100644 --- a/packages/special-pages/pages/new-tab/app/favorites/Favorites.js +++ b/packages/special-pages/pages/new-tab/app/favorites/Favorites.js @@ -55,7 +55,7 @@ export function Favorites ({ favorites, listDidReOrder }) { const PlusIcon = memo(function PlusIcon () { return (
-
+
-
+
{/* */}
@@ -81,19 +80,19 @@ function useTileState (url, id) { element: el, getInitialData: () => ({ type: 'grid-item', url, id, instanceId }), onDragStart: () => setState({ type: 'dragging' }), - onDrop: () => setState({ type: 'idle' }), - onGenerateDragPreview ({ nativeSetDragImage }) { - setCustomNativeDragPreview({ - nativeSetDragImage, - getOffset: pointerOutsideOfPreview({ - x: '0px', - y: '12px' - }), - render ({ container }) { - setState({ type: 'preview', container }) - } - }) - } + onDrop: () => setState({ type: 'idle' }) + // onGenerateDragPreview ({ nativeSetDragImage }) { + // setCustomNativeDragPreview({ + // nativeSetDragImage, + // getOffset: pointerOutsideOfPreview({ + // x: '0px', + // y: '12px' + // }), + // render ({ container }) { + // setState({ type: 'preview', container }) + // } + // }) + // } }), dropTargetForElements({ element: el,