Skip to content

Fix: Align language names and add borders to flags#30

Merged
menny merged 1 commit intomasterfrom
fix/language-flag-alignment
Jun 1, 2025
Merged

Fix: Align language names and add borders to flags#30
menny merged 1 commit intomasterfrom
fix/language-flag-alignment

Conversation

@menny
Copy link
Copy Markdown
Member

@menny menny commented Jun 1, 2025

This commit addresses the visual layout of the languages page:

  1. Language Name Alignment:

    • Wraps flag images in a <span> with class flag-container.
    • The flag-container has a fixed width and right margin, ensuring that language names following the flags are vertically aligned, regardless of individual flag widths.
  2. Flag Borders:

    • Adds a 1px solid black border to all language flags via the language-flag CSS class.

These changes improve the readability and visual consistency of the language list. The specific files modified are languages.html and css/screen.scss.

This commit addresses the visual layout of the languages page:

1.  Language Name Alignment:
    - Wraps flag images in a `<span>` with class `flag-container`.
    - The `flag-container` has a fixed width and right margin, ensuring that language names following the flags are vertically aligned, regardless of individual flag widths.

2.  Flag Borders:
    - Adds a `1px solid black` border to all language flags via the `language-flag` CSS class.

These changes improve the readability and visual consistency of the language list. The specific files modified are `languages.html` and `css/screen.scss`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant