From c0e70847861ed7bca038ac57bc99bce471e9660f Mon Sep 17 00:00:00 2001
From: Anchel123 <110421452+Anchel123@users.noreply.github.com>
Date: Tue, 16 Apr 2024 14:38:08 +0300
Subject: [PATCH 01/10] fix styling
---
app/graph/DataPanel.tsx | 9 ++++---
app/graph/GraphView.tsx | 2 +-
app/graph/query.tsx | 19 +++++--------
app/graph/toolbar.tsx | 52 ++++++++++++------------------------
app/providers.tsx | 8 +++---
components/custom/navbar.tsx | 5 ++--
6 files changed, 37 insertions(+), 58 deletions(-)
diff --git a/app/graph/DataPanel.tsx b/app/graph/DataPanel.tsx
index 2b482fcb..318d2507 100644
--- a/app/graph/DataPanel.tsx
+++ b/app/graph/DataPanel.tsx
@@ -1,4 +1,4 @@
-import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
+import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";
interface Props {
@@ -17,9 +17,10 @@ const excludedProperties = new Set([
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export default function DataPanel({ object }: Props) {
const rowClass = "dark:hover:bg-slate-700 hover:bg-gray-400 border-y-[1px] border-y-gray-700"
-
+ const type = object.sucre ? "edge" : "node"
return (
+ {type} properties
Field
@@ -38,10 +39,10 @@ export default function DataPanel({ object }: Props) {
const text = cellIndex === 1 ? JSON.parse(strCell) : strCell
return (
// eslint-disable-next-line react/no-array-index-key
-
+
-
+
{text}
diff --git a/app/graph/GraphView.tsx b/app/graph/GraphView.tsx
index f99ee12e..df7934ba 100644
--- a/app/graph/GraphView.tsx
+++ b/app/graph/GraphView.tsx
@@ -216,7 +216,7 @@ const GraphView = forwardRef(({ graph, darkmode }: GraphViewProps, ref) => {
{
selectedObject &&
-