@@ -163,33 +163,19 @@ function NoteCard({ note, onClick, onNoteCardSetName, onDeleteNote }): JSX.Eleme
163
163
) }
164
164
</ div >
165
165
166
- < div className = "flex flex-col w-full" >
167
- < div className = "grid grid-rows-1 grid-cols-3 space-x-1 justify-start text-muted-foreground text-xs" >
168
- < div className = "text-nowrap truncate" >
169
- < div className = "flex" >
170
- < div > { t ( 'createdAt' ) } </ div >
171
- < div className = "grow text-right" > :</ div >
172
- </ div >
173
- </ div >
174
- < div
175
- className = "col-span-2 text-nowrap truncate font-mono"
176
- title = { formatToISO8601 ( note . createdAt ) }
177
- >
166
+ < div className = "grid grid-cols-1 sm:grid-cols-[min-content_min-content_1fr] gap-x-0.5 text-muted-foreground text-xs" >
167
+ < div className = "grid grid-cols-subgrid col-span-full" >
168
+ < div className = "text-nowrap truncate" > { t ( 'createdAt' ) } </ div >
169
+ < div className = "hidden sm:block" > :</ div >
170
+ < div className = "text-nowrap truncate font-mono" title = { formatToISO8601 ( note . createdAt ) } >
178
171
{ formatToRecent ( note . createdAt ) }
179
172
</ div >
180
173
</ div >
181
- < div className = "grid grid-rows-1 grid-cols-3 space-x-1 justify-start text-muted-foreground text-xs" >
182
- < div className = "text-nowrap truncate" >
183
- < div className = "flex" >
184
- < div > { t ( 'updatedAt' ) } </ div >
185
- < div className = "grow text-right" > :</ div >
186
- </ div >
187
- </ div >
188
- < div
189
- className = "col-span-2 text-nowrap truncate font-mono"
190
- title = { formatToISO8601 ( note . updatedAt ) }
191
- >
192
- { formatToRecent ( note . updatedAt ) }
174
+ < div className = "grid grid-cols-subgrid col-span-full" >
175
+ < div className = "text-nowrap truncate" > { t ( 'updatedAt' ) } </ div >
176
+ < div className = "hidden sm:block" > :</ div >
177
+ < div className = "text-nowrap truncate font-mono" title = { formatToISO8601 ( note . createdAt ) } >
178
+ { formatToRecent ( note . createdAt ) }
193
179
</ div >
194
180
</ div >
195
181
</ div >
0 commit comments