diff --git a/.changeset/khaki-turtles-grow.md b/.changeset/khaki-turtles-grow.md new file mode 100644 index 00000000..c1ec3f83 --- /dev/null +++ b/.changeset/khaki-turtles-grow.md @@ -0,0 +1,5 @@ +--- +"@hyperdx/app": patch +--- + +fix: broke out line break icon from HyperJsonMenu diff --git a/packages/app/src/components/DBRowJsonViewer.tsx b/packages/app/src/components/DBRowJsonViewer.tsx index 7177028b..30a8f30c 100644 --- a/packages/app/src/components/DBRowJsonViewer.tsx +++ b/packages/app/src/components/DBRowJsonViewer.tsx @@ -12,6 +12,7 @@ import { Menu, Paper, Text, + UnstyledButton, } from '@mantine/core'; import { useDebouncedValue } from '@mantine/hooks'; import { notifications } from '@mantine/notifications'; @@ -60,65 +61,60 @@ function HyperJsonMenu() { const [jsonOptions, setJsonOptions] = useAtom(viewerOptionsAtom); return ( - - - - - - - - - Properties view options - - - setJsonOptions({ - ...jsonOptions, - normallyExpanded: !jsonOptions.normallyExpanded, - }) - } - lh="1" - py={8} - rightSection={ - jsonOptions.normallyExpanded ? ( - - ) : null - } - > - Expand all properties - - - setJsonOptions({ - ...jsonOptions, - lineWrap: !jsonOptions.lineWrap, - }) - } - lh="1" - py={8} - rightSection={ - jsonOptions.lineWrap ? : null - } - > - Preserve line breaks - - : null - } - onClick={() => - setJsonOptions({ - ...jsonOptions, - tabulate: !jsonOptions.tabulate, - }) - } - > - Tabulate - - - + + + setJsonOptions({ ...jsonOptions, lineWrap: !jsonOptions.lineWrap }) + } + > + + + + + + + + + + + Properties view options + + + setJsonOptions({ + ...jsonOptions, + normallyExpanded: !jsonOptions.normallyExpanded, + }) + } + lh="1" + py={8} + rightSection={ + jsonOptions.normallyExpanded ? ( + + ) : null + } + > + Expand all properties + + : null + } + onClick={() => + setJsonOptions({ + ...jsonOptions, + tabulate: !jsonOptions.tabulate, + }) + } + > + Tabulate + + + + ); }