Skip to content

Commit 3574af9

Browse files
committed
fix(ui): prevent metadata layout from shrinking
Add min-w, max-w, and shrink-0 to the location/country metadata container to avoid it collapsing when name or role text is long. Addresses review feedback from PR #466.
1 parent 064f1a8 commit 3574af9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ layout: false
3131
{% set country = person.data.country %}
3232
{% set location = person.data.location %}
3333
{% if location or country %}
34-
<div class="flex flex-col items-end text-right gap-0.5 text-[10px] bg-[var(--bg-footer)] text-[var(--text-muted)] px-2 py-1 rounded font-bold uppercase border border-[var(--border-color)]">
34+
<div class="flex flex-col items-end text-right gap-0.5 text-[10px] bg-[var(--bg-footer)] text-[var(--text-muted)] px-2 py-1 rounded font-bold uppercase border border-[var(--border-color)] min-w-[7rem] max-w-[10rem] shrink-0">
3535
{% if location %}<span>{{ location }}</span>{% endif %}
3636
{% if country %}<span>{{ country }}</span>{% endif %}
3737
</div>

0 commit comments

Comments
 (0)