Skip to content

Commit 9bbbfdf

Browse files
committed
improve visual hierarchy in time view
1 parent d27f023 commit 9bbbfdf

File tree

2 files changed

+9
-17
lines changed

2 files changed

+9
-17
lines changed

resources/js/packages/ui/src/TimeEntry/TimeEntryMassActionRow.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const showMassUpdateModal = ref(false);
6363
:class="
6464
twMerge(
6565
props.class,
66-
'text-sm py-1.5 font-medium bg-secondary flex items-center space-x-3'
66+
'text-sm py-1.5 font-medium flex border-b border-border-primary items-center space-x-3'
6767
)
6868
">
6969
<Checkbox

resources/js/packages/ui/src/TimeEntry/TimeEntryRowHeading.vue

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
import Checkbox from '../Input/Checkbox.vue';
99
import { inject, type ComputedRef } from 'vue';
1010
import type { Organization } from '@/packages/api/src';
11+
import { CalendarIcon } from '@heroicons/vue/20/solid';
1112
1213
const organization = inject<ComputedRef<Organization>>('organization');
1314
@@ -31,33 +32,24 @@ function selectUnselectAll(value: boolean) {
3132
</script>
3233

3334
<template>
34-
<div
35-
class="bg-row-heading-background border-t border-b border-row-heading-border py-1 text-xs @sm:text-sm">
35+
<div class="bg-quaternary border-b border-border-primary py-1 text-xs @sm:text-sm">
3636
<MainContainer>
3737
<div class="flex group justify-between items-center">
3838
<div class="flex items-center space-x-2">
3939
<div class="w-5">
40-
<svg
41-
class="w-3 @sm:w-4 text-icon-default group-hover:hidden block"
42-
viewBox="0 0 24 24"
43-
xmlns="http://www.w3.org/2000/svg">
44-
<g fill="none">
45-
<path
46-
d="m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z" />
47-
<path
48-
fill="currentColor"
49-
d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7zm-5-9a1 1 0 0 1 1 1v1h2a2 2 0 0 1 2 2v3H3V7a2 2 0 0 1 2-2h2V4a1 1 0 0 1 2 0v1h6V4a1 1 0 0 1 1-1" />
50-
</g>
51-
</svg>
40+
<CalendarIcon
41+
class="w-3 @sm:w-4 text-icon-default group-hover:hidden block">
42+
</CalendarIcon>
43+
5244
<Checkbox
5345
:checked="checked"
5446
class="group-hover:block hidden"
5547
@update:checked="selectUnselectAll"></Checkbox>
5648
</div>
57-
<span class="font-medium text-text-primary">
49+
<span class="font-medium text-text-secondary">
5850
{{ formatWeekday(date) }}
5951
</span>
60-
<span class="font-medium text-text-secondary">
52+
<span class="text-text-tertiary">
6153
{{ formatDate(date, organization?.date_format) }}
6254
</span>
6355
</div>

0 commit comments

Comments
 (0)