Merge pull request #1132 from danielaskdd/main

Fix dark mode styles for node property buttons
This commit is contained in:
Daniel.y
2025-03-20 11:40:24 +08:00
committed by GitHub
5 changed files with 8 additions and 8 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -8,8 +8,8 @@
<link rel="icon" type="image/svg+xml" href="logo.png" /> <link rel="icon" type="image/svg+xml" href="logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lightrag</title> <title>Lightrag</title>
<script type="module" crossorigin src="/webui/assets/index-CchWw5nW.js"></script> <script type="module" crossorigin src="/webui/assets/index-T7hdp_6t.js"></script>
<link rel="stylesheet" crossorigin href="/webui/assets/index-BMVv3U43.css"> <link rel="stylesheet" crossorigin href="/webui/assets/index-BSOt8Nur.css">
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>

View File

@@ -218,20 +218,20 @@ const NodePropertiesView = ({ node }: { node: NodeType }) => {
<Button <Button
size="icon" size="icon"
variant="ghost" variant="ghost"
className="h-7 w-7 border border-gray-400 hover:bg-gray-200" className="h-7 w-7 border border-gray-400 hover:bg-gray-200 dark:border-gray-600 dark:hover:bg-gray-700"
onClick={handleExpandNode} onClick={handleExpandNode}
tooltip={t('graphPanel.propertiesView.node.expandNode')} tooltip={t('graphPanel.propertiesView.node.expandNode')}
> >
<GitBranchPlus className="h-4 w-4 text-gray-700" /> <GitBranchPlus className="h-4 w-4 text-gray-700 dark:text-gray-300" />
</Button> </Button>
<Button <Button
size="icon" size="icon"
variant="ghost" variant="ghost"
className="h-7 w-7 border border-gray-400 hover:bg-gray-200" className="h-7 w-7 border border-gray-400 hover:bg-gray-200 dark:border-gray-600 dark:hover:bg-gray-700"
onClick={handlePruneNode} onClick={handlePruneNode}
tooltip={t('graphPanel.propertiesView.node.pruneNode')} tooltip={t('graphPanel.propertiesView.node.pruneNode')}
> >
<Scissors className="h-4 w-4 text-gray-900" /> <Scissors className="h-4 w-4 text-gray-900 dark:text-gray-300" />
</Button> </Button>
</div> </div>
</div> </div>