Skip to content

Commit

Permalink
feat(applet): respect ui scale for font-size
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhang1030 committed Jun 25, 2024
1 parent d9e7bc2 commit f87e57f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/applet/src/components/state/RootStateViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const { expanded, toggleExpanded } = useToggleExpanded(props.expandedStateId)
/>
<!-- placeholder -->
<span v-else pl5 />
<span font-state-field text-13px>
<span font-state-field text-3.5>
{{ key }}
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/applet/src/components/state/StateFieldViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ async function submitDrafting() {
<div>
<div
ref="containerRef"
class="font-state-field flex items-center text-13px"
class="font-state-field flex items-center text-3.5"
:class="[hasChildren && 'cursor-pointer hover:(bg-active)']"
:style="{ paddingLeft: `${depth * 15 + 4}px` }"
@click="toggleExpanded(`${depth}-${index}`)"
Expand Down
2 changes: 1 addition & 1 deletion packages/applet/src/components/tree/TreeViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function select(id: string) {
/>
<!-- placeholder -->
<span v-else pl5 />
<span font-state-field text-13px>
<span font-state-field text-3.5>
<span v-if="withTag" class="text-gray-400 dark:text-gray-600 group-hover:(text-white op50) [.active_&]:(op50 text-white!)">&lt;</span>
<span group-hover:text-white class="ws-nowrap [.active_&]:(text-white)">{{ normalizeLabel(item) }}</span>
<span v-if="withTag" class="text-gray-400 dark:text-gray-600 group-hover:(text-white op50) [.active_&]:(op50 text-white!)">&gt;</span>
Expand Down
6 changes: 3 additions & 3 deletions packages/applet/src/modules/components/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ function closeComponentRenderCode() {
<Pane border="base" h-full>
<div v-if="componentTreeLoaded" class="h-full flex flex-col p2">
<div class="flex py2">
<VueInput v-model="filterComponentName" :loading-debounce-time="250" :loading="!filtered" placeholder="Find components..." class="flex-1 text-13px" />
<VueInput v-model="filterComponentName" :loading-debounce-time="250" :loading="!filtered" placeholder="Find components..." class="flex-1 text-3.5" />
<button v-tooltip.bottom="'Select component in the page'" px-1 class="hover:(color-#00dc82)" @click="inspectComponentInspector">
<svg
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -299,13 +299,13 @@ function closeComponentRenderCode() {
<div class="h-full flex flex-col p2">
<div class="flex py2">
<!-- component name -->
<span v-if="activeTreeNode?.name" class="font-state-field flex items-center px-1 text-13px">
<span v-if="activeTreeNode?.name" class="font-state-field flex items-center px-1 text-3.5">
<span class="text-gray-400 dark:text-gray-600">&lt;</span>
<span group-hover:text-white class="max-w-40 of-hidden text-ellipsis ws-nowrap [.active_&]:(text-white)">{{ activeTreeNode.name }}</span>
<span class="text-gray-400 dark:text-gray-600">&gt;</span>
</span>

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

<div class="flex items-center gap-2 px-1">
<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" />
Expand Down

0 comments on commit f87e57f

Please sign in to comment.