diff --git a/surfsense_web/components/ui/table-node.tsx b/surfsense_web/components/ui/table-node.tsx index 89707c56d..2341a23a7 100644 --- a/surfsense_web/components/ui/table-node.tsx +++ b/surfsense_web/components/ui/table-node.tsx @@ -2,8 +2,6 @@ import * as React from 'react'; -import type * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'; - import { useDraggable, useDropLine } from '@platejs/dnd'; import { BlockSelectionPlugin, @@ -12,7 +10,6 @@ import { import { TablePlugin, TableProvider, - useTableBordersDropdownMenuContentState, useTableCellElement, useTableCellElementResizable, useTableElement, @@ -26,7 +23,6 @@ import { ArrowRight, ArrowUp, CombineIcon, - Grid2X2Icon, GripVertical, SquareSplitHorizontalIcon, Trash2Icon, @@ -58,27 +54,11 @@ import { import { useElementSelector } from 'platejs/react'; import { Button } from '@/components/ui/button'; -import { - DropdownMenu, - DropdownMenuCheckboxItem, - DropdownMenuContent, - DropdownMenuGroup, - DropdownMenuPortal, - DropdownMenuTrigger, -} from '@/components/ui/dropdown-menu'; import { Popover, PopoverContent } from '@/components/ui/popover'; import { cn } from '@/lib/utils'; import { blockSelectionVariants } from './block-selection'; import { ResizeHandle } from './resize-handle'; -import { - BorderAllIcon, - BorderBottomIcon, - BorderLeftIcon, - BorderNoneIcon, - BorderRightIcon, - BorderTopIcon, -} from './table-icons'; import { Toolbar, ToolbarButton, @@ -192,18 +172,6 @@ function TableFloatingToolbar({ )} - - - - - - - - - - - - {collapsedInside && ( @@ -282,83 +250,6 @@ function TableFloatingToolbar({ ); } -function TableBordersDropdownMenuContent( - props: React.ComponentProps -) { - const editor = useEditorRef(); - const { - getOnSelectTableBorder, - hasBottomBorder, - hasLeftBorder, - hasNoBorders, - hasOuterBorders, - hasRightBorder, - hasTopBorder, - } = useTableBordersDropdownMenuContentState(); - - return ( - { - e.preventDefault(); - editor.tf.focus(); - }} - align="start" - side="right" - sideOffset={0} - {...props} - > - - - -
Top Border
-
- - -
Right Border
-
- - -
Bottom Border
-
- - -
Left Border
-
-
- - - - -
No Border
-
- - -
Outside Borders
-
-
-
- ); -} - export function TableRowElement({ children, ...props diff --git a/surfsense_web/components/ui/toolbar.tsx b/surfsense_web/components/ui/toolbar.tsx index 80610e5c7..7564a6d95 100644 --- a/surfsense_web/components/ui/toolbar.tsx +++ b/surfsense_web/components/ui/toolbar.tsx @@ -331,7 +331,6 @@ function withTooltip(Component: T) { function TooltipContent({ children, className, - // CHANGE sideOffset = 4, ...props }: React.ComponentProps) { @@ -339,7 +338,7 @@ function TooltipContent({ {children} - {/* CHANGE */} - {/* */} );