From ab10e6e9406fda5d8b57132f18768e1b9a8d85f2 Mon Sep 17 00:00:00 2001 From: SpliiT Date: Fri, 15 May 2026 10:09:36 +0200 Subject: [PATCH 1/4] size treeview --- .../Viewer/ObjectTree/Base/CommonTreeView.vue | 6 +- .../Viewer/ObjectTree/Base/Controls.vue | 8 +- .../Viewer/ObjectTree/Base/ItemLabel.vue | 38 +++++- .../Viewer/ObjectTree/Base/TreeRow.vue | 12 +- app/components/Viewer/ObjectTree/Box.vue | 58 ++------- app/components/Viewer/ObjectTree/Layout.vue | 118 ++++++++++++++---- .../Viewer/ObjectTree/Views/GlobalObjects.vue | 2 +- app/composables/use_adaptive_styles.js | 55 ++++++++ app/stores/treeview.js | 22 +++- app/utils/string.js | 26 ++++ 10 files changed, 255 insertions(+), 90 deletions(-) create mode 100644 app/composables/use_adaptive_styles.js create mode 100644 app/utils/string.js diff --git a/app/components/Viewer/ObjectTree/Base/CommonTreeView.vue b/app/components/Viewer/ObjectTree/Base/CommonTreeView.vue index a3ccaad26..a6a7b497c 100644 --- a/app/components/Viewer/ObjectTree/Base/CommonTreeView.vue +++ b/app/components/Viewer/ObjectTree/Base/CommonTreeView.vue @@ -163,10 +163,10 @@ const { focusedIndex, handleKeyDown } = useTreeKeyboardNav( } .tree-row-wrapper { - min-height: 44px !important; + min-height: 28px !important; cursor: pointer; - border-radius: 8px; - margin: 1px 4px; + border-radius: 4px; + margin: 0 2px; } .tree-row-wrapper.is-focused { diff --git a/app/components/Viewer/ObjectTree/Base/Controls.vue b/app/components/Viewer/ObjectTree/Base/Controls.vue index 1ad9d0dd4..3fb0a3e5e 100644 --- a/app/components/Viewer/ObjectTree/Base/Controls.vue +++ b/app/components/Viewer/ObjectTree/Base/Controls.vue @@ -24,7 +24,7 @@ watch(