Skip to content

Commit dce37c4

Browse files
committed
Tidy up
1 parent 3042bdf commit dce37c4

5 files changed

Lines changed: 14 additions & 15 deletions

File tree

resources/css/components/configure.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
@apply mb-0;
1616
}
1717
.field-inner {
18-
@apply ltr:pr-8 rtl:pl-8;
18+
@apply pe-8;
1919
}
2020
}
2121
}

resources/js/components/collections/OneOrManySitesField.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
<tr v-for="site in sites" :key="site.handle">
2727
<td class="align-middle" v-text="__(site.name)" />
2828
<td>
29-
<text-input
30-
dir="ltr"
31-
class="slug-field"
29+
<ui-input
3230
:model-value="value[site.handle]"
3331
@update:model-value="updateSiteValue(site.handle, $event)"
3432
/>
@@ -39,7 +37,7 @@
3937
</div>
4038

4139
<div v-if="!hasMultipleSites || !inMultipleMode">
42-
<text-input :model-value="value" @update:model-value="update" class="slug-field" dir="ltr" />
40+
<ui-input :model-value="value" @update:model-value="update" />
4341
</div>
4442
</div>
4543
</template>

resources/js/components/entries/PublishForm.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
</DropdownMenu>
3131
</Dropdown>
3232

33-
<div class="text-2xs flex pt-px text-gray-600 ltr:mr-4 rtl:ml-4" v-if="readOnly">
34-
<svg-icon name="light/lock" class="-mt-1 w-4 ltr:mr-1 rtl:ml-1" /> {{ __('Read Only') }}
33+
<div class="text-2xs flex pt-px text-gray-600 me-4" v-if="readOnly">
34+
<svg-icon name="light/lock" class="-mt-1 w-4 me-1" /> {{ __('Read Only') }}
3535
</div>
3636

3737
<div class="hidden items-center gap-3 md:flex">
@@ -215,7 +215,7 @@
215215
<loading-graphic
216216
:size="14"
217217
text=""
218-
class="ltr:ml-2 rtl:mr-2"
218+
class="ms-2"
219219
v-if="localizing && localizing.handle === option.handle"
220220
/>
221221
</div>
@@ -244,7 +244,7 @@
244244
<template v-slot:buttons>
245245
<button
246246
v-if="!readOnly"
247-
class="ltr:ml-4 rtl:mr-4"
247+
class="ms-4"
248248
:class="{
249249
btn: revisionsEnabled,
250250
'btn-primary': isCreating || !revisionsEnabled,
@@ -256,12 +256,12 @@
256256

257257
<button
258258
v-if="revisionsEnabled && !isCreating"
259-
class="btn-primary flex items-center ltr:ml-4 rtl:mr-4"
259+
class="btn-primary flex items-center ms-4"
260260
:disabled="!canPublish"
261261
@click="confirmingPublish = true"
262262
>
263263
<span v-text="publishButtonText" />
264-
<svg-icon name="micro/chevron-down-xs" class="w-2 ltr:ml-2 rtl:mr-2" />
264+
<svg-icon name="micro/chevron-down-xs" class="w-2 ms-2" />
265265
</button>
266266
</template>
267267
</live-preview>
@@ -273,7 +273,7 @@
273273
class="btn-lg"
274274
:class="{
275275
'btn-primary w-full': !revisionsEnabled,
276-
'btn w-1/2 ltr:mr-4 rtl:ml-4': revisionsEnabled,
276+
'btn w-1/2 me-4': revisionsEnabled,
277277
}"
278278
:disabled="!canSave"
279279
@click.prevent="save"
@@ -282,12 +282,12 @@
282282

283283
<button
284284
v-if="revisionsEnabled"
285-
class="btn btn-lg btn-primary flex w-1/2 items-center justify-center ltr:ml-2 rtl:mr-2"
285+
class="btn btn-lg btn-primary flex w-1/2 items-center justify-center ms-2"
286286
:disabled="!canPublish"
287287
@click="confirmingPublish = true"
288288
>
289289
<span v-text="publishButtonText" />
290-
<svg-icon name="micro/chevron-down-xs" class="w-2 ltr:ml-2 rtl:mr-2" />
290+
<svg-icon name="micro/chevron-down-xs" class="w-2 ms-2" />
291291
</button>
292292
</div>
293293

resources/js/components/ui/Description.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const props = defineProps({
1212
</script>
1313

1414
<template>
15-
<div class="text-sm font-normal text-gray-500 antialiased dark:text-gray-400" data-ui-description>
15+
<div class="text-[0.8125rem] font-normal text-gray-500 dark:text-gray-400" data-ui-description>
1616
<slot v-if="hasDefaultSlot" />
1717
<span v-else v-html="text" />
1818
</div>

resources/js/components/ui/Switch.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const switchThumbClasses = cva({
5959
:model-value="modelValue"
6060
:class="switchRootClasses"
6161
@update:model-value="$emit('update:modelValue', $event)"
62+
data-ui-switch
6263
>
6364
<SwitchThumb :class="switchThumbClasses" />
6465
</SwitchRoot>

0 commit comments

Comments
 (0)