Skip to content

Commit 9287abd

Browse files
LAI-Xlaixingui.lxglvisei
authored
fix(text): modify the judgment rules of dark mode (#70)
* fix(text): modify the judgment rules of dark mode * fix: solve formatting issue * Create old-shirts-train.md --------- Co-authored-by: laixingui.lxg <[email protected]> Co-authored-by: lvisei <[email protected]>
1 parent ec2b0f2 commit 9287abd

File tree

3 files changed

+22
-16
lines changed

3 files changed

+22
-16
lines changed

.changeset/old-shirts-train.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@antv/gpt-vis': patch
3+
---
4+
5+
fix(text): modify the judgment rules of dark mode

bindings/streamlit-gpt-vis/streamlit_gpt_vis/frontend/public/bootstrap.min.css

Lines changed: 16 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Text/utils/useAntdDarkAlgorithm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ export const useAntdDarkAlgorithm = () => {
1111
const currentAlgorithm = config.theme?.algorithm;
1212

1313
if (isArray(currentAlgorithm) && currentAlgorithm.includes(darkAlgorithm)) return true;
14-
return currentAlgorithm === darkAlgorithm;
14+
return !!darkAlgorithm && currentAlgorithm === darkAlgorithm;
1515
};

0 commit comments

Comments
 (0)