Skip to content

Commit 7a00bd4

Browse files
alvarosabuclaude
andcommitted
feat(leches): compact folder, control input, and label
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8894f7d commit 7a00bd4

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

packages/leches/src/components/ControlInput.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ function onChange(value: string) {
7272
/>
7373
<div
7474
v-else-if="control.type === 'button'"
75-
class="tl-py-2 tl-px-4 tl-flex tl-justify-end"
75+
class="tl-flex tl-justify-end"
76+
style="padding: var(--tl-v-padding) var(--tl-h-padding);"
7677
>
7778
<ButtonControl
7879
:label="control.label"

packages/leches/src/components/ControlLabel.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ defineProps<{
1212
:for="control.uniqueKey"
1313
:title="label"
1414
class="tl-text-gray-500 dark:tl-text-gray-400 tl-w-1/3 tl-truncate"
15+
style="padding-left: var(--tl-h-padding);"
1516
>
1617
<i
1718
v-if="control.icon"

packages/leches/src/components/Folder.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,13 @@ const toggle = () => {
2828
</script>
2929

3030
<template>
31-
<div class="tl-mb-2 tl-transition-all tl-duration-400 tl-ease-in-out">
31+
<div class="tl-transition-all tl-duration-200 tl-ease-in-out" style="margin-bottom: var(--tl-unit-spacing);">
3232
<button
3333
class="
3434
tl-flex
3535
tl-items-center
3636
tl-justify-between
3737
tl-w-full
38-
tl-py-2
39-
tl-px-4
4038
tl-bg-gray-100
4139
dark:tl-bg-dark-300
4240
tl-border-none
@@ -49,6 +47,7 @@ const toggle = () => {
4947
tl-relative
5048
tl-z-10
5149
"
50+
style="padding: 0 var(--tl-h-padding); height: var(--tl-unit-size); line-height: var(--tl-unit-size);"
5251
:aria-expanded="isOpen"
5352
aria-haspopup="true"
5453
role="button"
@@ -72,7 +71,8 @@ const toggle = () => {
7271
>
7372
<div
7473
v-show="isOpen"
75-
class="tl-bg-white dark:tl-bg-dark-300 tl-rounded-b tl-pt-4 tl-pb-2"
74+
class="tl-bg-white dark:tl-bg-dark-300 tl-rounded-b"
75+
style="padding-top: var(--tl-v-padding); padding-bottom: var(--tl-v-padding);"
7676
role="menu"
7777
>
7878
<template

0 commit comments

Comments
 (0)