Skip to content

Commit 7b39226

Browse files
authoredJun 25, 2024··
feat(applet): respect ui scale on components panel text-size (#483)
1 parent f856340 commit 7b39226

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed
 

‎packages/applet/src/components/state/RootStateViewer.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const { expanded, toggleExpanded } = useToggleExpanded(props.expandedStateId)
5050
/>
5151
<!-- placeholder -->
5252
<span v-else pl5 />
53-
<span font-state-field text-13px>
53+
<span font-state-field text-3.5>
5454
{{ key }}
5555
</span>
5656
</div>

‎packages/applet/src/components/state/StateFieldViewer.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ async function submitDrafting() {
188188
<div>
189189
<div
190190
ref="containerRef"
191-
class="font-state-field flex items-center text-13px"
191+
class="font-state-field flex items-center text-3.5"
192192
:class="[hasChildren && 'cursor-pointer hover:(bg-active)']"
193193
:style="{ paddingLeft: `${depth * 15 + 4}px` }"
194194
@click="toggleExpanded(`${depth}-${index}`)"

‎packages/applet/src/components/tree/TreeViewer.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function select(id: string) {
5151
/>
5252
<!-- placeholder -->
5353
<span v-else pl5 />
54-
<span font-state-field text-13px>
54+
<span font-state-field text-3.5>
5555
<span v-if="withTag" class="text-gray-400 dark:text-gray-600 group-hover:(text-white op50) [.active_&]:(op50 text-white!)">&lt;</span>
5656
<span group-hover:text-white class="ws-nowrap [.active_&]:(text-white)">{{ normalizeLabel(item) }}</span>
5757
<span v-if="withTag" class="text-gray-400 dark:text-gray-600 group-hover:(text-white op50) [.active_&]:(op50 text-white!)">&gt;</span>

‎packages/applet/src/modules/components/index.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ function closeComponentRenderCode() {
278278
<Pane border="base" h-full>
279279
<div v-if="componentTreeLoaded" class="h-full flex flex-col p2">
280280
<div class="flex py2">
281-
<VueInput v-model="filterComponentName" :loading-debounce-time="250" :loading="!filtered" placeholder="Find components..." class="flex-1 text-13px" />
281+
<VueInput v-model="filterComponentName" :loading-debounce-time="250" :loading="!filtered" placeholder="Find components..." class="flex-1 text-3.5" />
282282
<button v-tooltip.bottom="'Select component in the page'" px-1 class="hover:(color-#00dc82)" @click="inspectComponentInspector">
283283
<svg
284284
xmlns="http://www.w3.org/2000/svg"
@@ -299,13 +299,13 @@ function closeComponentRenderCode() {
299299
<div class="h-full flex flex-col p2">
300300
<div class="flex py2">
301301
<!-- component name -->
302-
<span v-if="activeTreeNode?.name" class="font-state-field flex items-center px-1 text-13px">
302+
<span v-if="activeTreeNode?.name" class="font-state-field flex items-center px-1 text-3.5">
303303
<span class="text-gray-400 dark:text-gray-600">&lt;</span>
304304
<span group-hover:text-white class="max-w-40 of-hidden text-ellipsis ws-nowrap [.active_&]:(text-white)">{{ activeTreeNode.name }}</span>
305305
<span class="text-gray-400 dark:text-gray-600">&gt;</span>
306306
</span>
307307

308-
<VueInput v-model="filterStateName" :loading-debounce-time="250" placeholder="Filter State..." class="flex-1 text-13px" />
308+
<VueInput v-model="filterStateName" :loading-debounce-time="250" placeholder="Filter State..." class="flex-1 text-3.5" />
309309

310310
<div class="flex items-center gap-2 px-1">
311311
<i v-tooltip.bottom="'Scroll to component'" class="i-material-symbols-light:eye-tracking-outline h-4 w-4 cursor-pointer hover:(op-70)" @click="scrollToComponent" />

0 commit comments

Comments
 (0)
Please sign in to comment.