@@ -94,7 +94,8 @@ function onSelectChange(checked: boolean) {
9494 data-testid =" time_entry_row" >
9595 <MainContainer class =" min-w-0" >
9696 <div class =" @xl:flex py-2 items-center min-w-0 justify-between group" >
97- <div class =" flex space-x-3 items-center min-w-0" >
97+ <!-- Desktop layout -->
98+ <div class =" hidden @lg:flex space-x-3 items-center min-w-0" >
9899 <Checkbox
99100 :checked ="
100101 timeEntry.timeEntries.every((aggregateTimeEntry: TimeEntry) =>
@@ -107,10 +108,11 @@ function onSelectChange(checked: boolean) {
107108 {{ timeEntry?.timeEntries?.length }}
108109 </GroupedItemsCountButton >
109110 <TimeEntryDescriptionInput
110- class =" min-w-0 mr-4"
111+ class =" min-w-0 mr-4 shrink "
111112 :model-value =" timeEntry.description"
112113 @changed =" updateTimeEntryDescription" ></TimeEntryDescriptionInput >
113114 <TimeTrackerProjectTaskDropdown
115+ class =" min-w-0 shrink"
114116 :clients
115117 :create-project
116118 :create-client
@@ -125,7 +127,8 @@ function onSelectChange(checked: boolean) {
125127 @changed =" updateProjectAndTask" ></TimeTrackerProjectTaskDropdown >
126128 </div >
127129 </div >
128- <div class =" flex items-center font-medium space-x-1 @lg:space-x-2" >
130+ <div
131+ class =" hidden @lg:flex items-center font-medium space-x-1 @lg:space-x-2 shrink-0" >
129132 <TimeEntryRowTagDropdown
130133 :create-tag
131134 :tags =" tags"
@@ -180,6 +183,74 @@ function onSelectChange(checked: boolean) {
180183 deleteTimeEntries(timeEntry?.timeEntries ?? [])
181184 " ></TimeEntryMoreOptionsDropdown >
182185 </div >
186+ <!-- Mobile layout -->
187+ <div class =" @lg:hidden" >
188+ <!-- First row: count + description + duration -->
189+ <div class =" flex items-center justify-between min-w-0" >
190+ <div class =" flex items-center min-w-0 flex-1" >
191+ <GroupedItemsCountButton
192+ :expanded =" expanded"
193+ @click =" expanded = !expanded" >
194+ {{ timeEntry?.timeEntries?.length }}
195+ </GroupedItemsCountButton >
196+ <TimeEntryDescriptionInput
197+ class =" min-w-0 flex-1"
198+ :model-value =" timeEntry.description"
199+ @changed =" updateTimeEntryDescription" ></TimeEntryDescriptionInput >
200+ </div >
201+ <button
202+ class =" text-text-primary min-w-[80px] px-1.5 py-1.5 bg-transparent text-right hover:bg-card-background rounded-lg border border-transparent hover:border-card-border text-sm font-medium focus-visible:outline-none focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:bg-tertiary"
203+ @click =" expanded = !expanded" >
204+ {{
205+ formatHumanReadableDuration(
206+ timeEntry.duration ?? 0,
207+ organization?.interval_format,
208+ organization?.number_format
209+ )
210+ }}
211+ </button >
212+ </div >
213+ <!-- Second row: project/task - tags - billable - start - more -->
214+ <div class =" flex items-center justify-between mt-1" >
215+ <TimeTrackerProjectTaskDropdown
216+ class =" min-w-0"
217+ :clients
218+ :create-project
219+ :create-client
220+ :can-create-project
221+ :projects =" projects"
222+ :tasks =" tasks"
223+ :show-badge-border =" false"
224+ :project =" timeEntry.project_id"
225+ :enable-estimated-time
226+ :currency =" currency"
227+ :task =" timeEntry.task_id"
228+ @changed =" updateProjectAndTask" ></TimeTrackerProjectTaskDropdown >
229+ <div class =" flex items-center shrink-0" >
230+ <TimeEntryRowTagDropdown
231+ :create-tag
232+ :tags =" tags"
233+ :model-value =" timeEntry.tags"
234+ compact
235+ @changed =" updateTimeEntryTags" ></TimeEntryRowTagDropdown >
236+ <BillableToggleButton
237+ :model-value =" timeEntry.billable"
238+ size =" small"
239+ @changed =" updateTimeEntryBillable" ></BillableToggleButton >
240+ <TimeTrackerStartStop
241+ :active =" !!(timeEntry.start && !timeEntry.end)"
242+ variant =" secondary"
243+ class =" ml-2"
244+ @changed =" onStartStopClick(timeEntry)" ></TimeTrackerStartStop >
245+ <TimeEntryMoreOptionsDropdown
246+ :show-edit =" false"
247+ :show-duplicate =" false"
248+ @delete ="
249+ deleteTimeEntries(timeEntry?.timeEntries ?? [])
250+ " ></TimeEntryMoreOptionsDropdown >
251+ </div >
252+ </div >
253+ </div >
183254 </div >
184255 </MainContainer >
185256 <div
0 commit comments