Skip to content

Commit

Permalink
chore(applet): adjust state field text size
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Jun 18, 2024
1 parent 722220d commit da45ec9
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-14px>
<span font-state-field text-13px>
{{ 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-14px"
class="font-state-field flex items-center text-13px"
: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-14px>
<span font-state-field text-13px>
<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 @@ -272,7 +272,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-14px" />
<VueInput v-model="filterComponentName" :loading-debounce-time="250" :loading="!filtered" placeholder="Find components..." class="flex-1 text-13px" />
<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 @@ -293,13 +293,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-14px">
<span v-if="activeTreeNode?.name" class="font-state-field flex items-center px-1 text-13px">
<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-14px" />
<VueInput v-model="filterStateName" :loading-debounce-time="250" placeholder="Filter State..." class="flex-1 text-13px" />

<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 da45ec9

Please sign in to comment.