Skip to content

Commit

Permalink
fix: styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Chasen-Zhang committed Dec 16, 2024
1 parent 5a94607 commit 4aa9956
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "databend-profile-ui",
"version": "0.0.9",
"version": "0.0.16",
"description": "A react library developed with dumi",
"license": "MIT",
"module": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/QueryProfile/CacheFlowAnalysisGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ const CacheFlowAnalysisGraph: FC<any> = ({
group.addShape('path', {
attrs: {
path: pathMoon,
fill: isExistedError ? '#f73920' : '#fff',
fill: isExistedError ? '#f73920' : isLight ? '#fff' : '#101',
},
name: `circle-path-bg-${Math.random()}`,
});
Expand Down
2 changes: 1 addition & 1 deletion src/QueryProfile/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ export default () => (
```jsx
import { TestProfile } from 'databend-profile-ui';

export default () => <TestProfile isDemo isNeedMetrics={true} />;
export default () => <TestProfile isDemo isNeedMetrics={false} />;
```
3 changes: 2 additions & 1 deletion src/QueryProfile/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
.graph {
flex: 1;
}
> div:first-child {
> div {
background-color: var(--color-bg-1) !important;
}
.profile-index-details-info {
Expand Down Expand Up @@ -181,6 +181,7 @@
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 600;
color: var(--node-heaer-color);
}
.profile-common-styles-bcpc {
border-bottom: 1px solid var(--color-border);
Expand Down
4 changes: 3 additions & 1 deletion src/assets/css/profile.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ html[data-prefers-color='light'] {
--node-heaer-color: #010e29;
}

:root.theme-dark.dark.dark-theme.dark-mode,
.theme-dark:root,
:root.theme-dark,
html.theme-dark,
html[data-prefers-color='dark'] {
--color-bg-1: rgb(18, 24, 38);
--color-primary: rgb(50, 147, 248);
Expand Down

0 comments on commit 4aa9956

Please sign in to comment.