Skip to content

Commit 5265799

Browse files
committed
Improved some UI.
- Button paddings decreased to make the button small - Paginator buttons made smaller - Space between buttons decreased. - Datatable Header height decreased and color darkened - Datatable row height decreased
1 parent 6094b7a commit 5265799

File tree

12 files changed

+17
-17
lines changed

12 files changed

+17
-17
lines changed

stubs/page-stub/Index.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
<AppDataTableData>
3535
<!-- edit {{ resourceName }} -->
36-
<AppTooltip text="Edit {{ ResourceName }}" class="mr-3">
36+
<AppTooltip text="Edit {{ ResourceName }}" class="mr-2">
3737
<AppButton
3838
class="btn btn-icon btn-primary"
3939
@click="
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<td class="whitespace-nowrap px-6 py-4 font-medium">
2+
<td class="whitespace-nowrap px-4 py-2 font-medium">
33
<slot></slot>
44
</td>
55
</template>

stubs/resources/js/Components/DataTable/AppDataTableHead.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<th
55
v-for="header in headers"
66
:key="header"
7-
class="border-b border-skin-neutral-6 bg-skin-neutral-3 px-6 py-3"
7+
class="border-b border-skin-neutral-5 bg-skin-neutral-5 px-4 py-2"
88
>
99
{{ header }}
1010
</th>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<tr class="border-b border-b-skin-neutral-6 hover:bg-skin-neutral-3">
2+
<tr class="border border-skin-neutral-4 hover:bg-skin-neutral-3">
33
<slot></slot>
44
</tr>
55
</template>

stubs/resources/js/Components/DataTable/AppPaginator.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
<template v-for="(link, index) in links" :key="index">
77
<div
88
v-if="link.url === null"
9-
class="mb-1 mr-1 rounded border px-4 py-3 text-sm leading-4 opacity-30"
9+
class="mb-1 mr-1 rounded border px-3 py-2 text-sm leading-4 opacity-30"
1010
v-html="link.label"
1111
/>
1212
<Link
1313
v-else
14-
class="mb-1 mr-1 rounded border px-4 py-3 text-sm leading-4 hover:bg-skin-primary-10 hover:text-skin-primary-1 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"
14+
class="mb-1 mr-1 rounded border px-3 py-2 text-sm leading-4 hover:bg-skin-primary-10 hover:text-skin-primary-1 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"
1515
:class="{
1616
'bg-skin-primary-9 text-skin-primary-2': link.active
1717
}"

stubs/resources/js/Components/Misc/AppButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const emit = defineEmits(['click'])
1010

1111
<style scoped>
1212
.btn {
13-
@apply z-0 rounded-md px-5 py-2.5 text-sm font-medium transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2;
13+
@apply z-0 flex items-center rounded-md px-4 py-2 text-sm font-medium transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2;
1414
}
1515
1616
.btn-primary {
@@ -38,6 +38,6 @@ const emit = defineEmits(['click'])
3838
}
3939
4040
.btn-icon {
41-
@apply h-10 w-10 rounded-md px-2.5 py-2.5;
41+
@apply h-8 rounded-md px-3;
4242
}
4343
</style>

stubs/resources/js/Pages/AclPermission/PermissionIndex.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
<AppDataTableData>
3535
<!-- edit permission -->
36-
<AppTooltip :text="__('Edit Permission')" class="mr-3">
36+
<AppTooltip :text="__('Edit Permission')" class="mr-2">
3737
<AppButton
3838
class="btn btn-icon btn-primary"
3939
@click="

stubs/resources/js/Pages/AclRole/RoleIndex.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
<AppDataTableData>
3232
<!-- role permissions -->
33-
<AppTooltip :text="__('Role Permissions')" class="mr-3">
33+
<AppTooltip :text="__('Role Permissions')" class="mr-2">
3434
<AppButton
3535
class="btn btn-icon btn-primary"
3636
@click="
@@ -44,7 +44,7 @@
4444
</AppTooltip>
4545

4646
<!-- edit role -->
47-
<AppTooltip :text="__('Edit Role')" class="mr-3">
47+
<AppTooltip :text="__('Edit Role')" class="mr-2">
4848
<AppButton
4949
class="btn btn-icon btn-primary"
5050
@click="

stubs/resources/js/Pages/AclRolePermission/RolePermissionForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
name="permission"
2828
:value="permission"
2929
/>
30-
<AppLabel :for="permission.name" class="ml-3">
30+
<AppLabel :for="permission.name" class="ml-2">
3131
{{ permission.name }}
3232
</AppLabel>
3333
</div>

stubs/resources/js/Pages/AclUserPermission/UserPermissionForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
name="permission"
2929
:value="permission"
3030
/>
31-
<AppLabel :for="permission.name" class="ml-3">
31+
<AppLabel :for="permission.name" class="ml-2">
3232
{{ permission.name }}
3333
</AppLabel>
3434
</div>

0 commit comments

Comments
 (0)