Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ layout: false
{% set country = person.data.country %}
{% set location = person.data.location %}
{% if location or country %}
<span class="shrink-0 text-[10px] bg-[var(--bg-footer)] text-[var(--text-muted)] px-2 py-1 rounded font-bold uppercase border border-[var(--border-color)]">
{{ location }}{% if location and country %}, {% endif %}{{ country }}
</span>
<div class="flex flex-col items-end gap-0.5 shrink-0 text-[10px] bg-[var(--bg-footer)] text-[var(--text-muted)] px-2 py-1 rounded font-bold uppercase border border-[var(--border-color)]">
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To ensure visual consistency when location or country names are long enough to wrap, consider adding the text-right utility class. While items-end aligns the spans themselves to the right of the flex container, text-right ensures that the text content within those spans remains right-aligned if it breaks into multiple lines.

            <div class="flex flex-col items-end text-right gap-0.5 shrink-0 text-[10px] bg-[var(--bg-footer)] text-[var(--text-muted)] px-2 py-1 rounded font-bold uppercase border border-[var(--border-color)]">

{% if location %}<span>{{ location }}</span>{% endif %}
{% if country %}<span>{{ country }}</span>{% endif %}
Comment thread
jbampton marked this conversation as resolved.
Comment thread
jbampton marked this conversation as resolved.
</div>
{% endif %}
</div>

Expand Down
Loading