From dd958c30cf1ec7191c44cf4c9ca15e89de768138 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Sat, 20 Sep 2025 15:12:25 +0800 Subject: [PATCH] fix(plugin-md-power): fix title text overflow, close #698 (#699) --- .../plugin-md-power/src/client/components/FileTreeNode.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/plugin-md-power/src/client/components/FileTreeNode.vue b/plugins/plugin-md-power/src/client/components/FileTreeNode.vue index 55b6ff6e..d1abb607 100644 --- a/plugins/plugin-md-power/src/client/components/FileTreeNode.vue +++ b/plugins/plugin-md-power/src/client/components/FileTreeNode.vue @@ -93,6 +93,7 @@ function toggle(ev: MouseEvent) { gap: 8px; align-items: center; justify-content: flex-start; + min-width: max-content; height: 28px; padding: 2px 0; margin: 0 0 0 16px; @@ -167,6 +168,8 @@ function toggle(ev: MouseEvent) { .vp-file-tree .vp-file-tree-info .name { position: relative; + flex-shrink: 99; + min-width: 0; font-family: var(--vp-font-family-mono); } @@ -208,6 +211,7 @@ function toggle(ev: MouseEvent) { .vp-file-tree .vp-file-tree-node .group { position: relative; + min-width: max-content; margin-left: 28px; }