fix(ui): improve mobile card layout for list views
Right-align values in mobile card cells while keeping labels left-aligned. Move tasting notes to a label-free strip at the bottom of roast cards.
This commit is contained in:
parent
2473e1f377
commit
92b20396af
2 changed files with 17 additions and 4 deletions
|
|
@ -584,6 +584,7 @@ input.input-field[type="number"] {
|
||||||
padding: 0.25rem 0;
|
padding: 0.25rem 0;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
|
text-align: end;
|
||||||
border: none !important;
|
border: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -595,6 +596,7 @@ input.input-field[type="number"] {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
margin-right: 0.75rem;
|
margin-right: 0.75rem;
|
||||||
|
text-align: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.responsive-table td[data-label=""]::before {
|
.responsive-table td[data-label=""]::before {
|
||||||
|
|
@ -643,6 +645,19 @@ input.input-field[type="number"] {
|
||||||
margin-right: 0.5rem;
|
margin-right: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Tasting notes: bottom strip, no label, left-aligned pills */
|
||||||
|
.responsive-table td.card-notes {
|
||||||
|
order: 98;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-start;
|
||||||
|
text-align: start;
|
||||||
|
padding-top: 0.5rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.responsive-table td.card-notes::before {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
/* Actions: absolute top-right in header area */
|
/* Actions: absolute top-right in header area */
|
||||||
.responsive-table td.card-actions {
|
.responsive-table td.card-actions {
|
||||||
order: -1;
|
order: -1;
|
||||||
|
|
|
||||||
|
|
@ -94,11 +94,9 @@
|
||||||
{{ roast.producer }}
|
{{ roast.producer }}
|
||||||
</td>
|
</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<td data-label="Tasting Notes" class="px-4 py-3">
|
<td data-label="Tasting Notes" class="card-notes px-4 py-3">
|
||||||
{% if !roast.tasting_notes.is_empty() %}
|
{% if !roast.tasting_notes.is_empty() %}
|
||||||
<div
|
<div class="flex flex-wrap gap-1">
|
||||||
class="flex flex-wrap gap-1 md:justify-start justify-end"
|
|
||||||
>
|
|
||||||
{% for note in roast.tasting_notes %}
|
{% for note in roast.tasting_notes %}
|
||||||
<span class="{{ note.pill_class }}"
|
<span class="{{ note.pill_class }}"
|
||||||
>{{ note.label }}</span
|
>{{ note.label }}</span
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue