Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat(tags): dynamically adjust tag list columns based on tag count #233

Merged
merged 1 commit into from
Dec 30, 2023

Conversation

welpo
Copy link
Owner

@welpo welpo commented Dec 30, 2023

Summary

This PR introduces a dynamic column layout for the tag list. Depending on the number of tags, the tag list will adjust to display in one (up to 8 tags), two (up to 16), or three columns (17 tags and beyond).

Related issue

Closes #230.

Changes

  • Implemented SCSS mixins for column count adjustments.
  • Updated the Tera template to apply different classes based on the number of tags (two-columns and three-columns), defaulting to a single column layout.
  • Added responsive design features with media queries in SCSS to adjust the number of columns based on screen size, ensuring a single column layout on mobile devices.

Accessibility

Should not affect accessibility.

Screenshots

See this short video showcasing the dynamic changes to column count, going from 3 to 1 on mobile width:

responsive.mov

Type of change

  • Bug fix (fixes an issue without altering functionality)
  • New feature (adds non-breaking functionality)
  • Breaking change (alters existing functionality)
  • UI/UX improvement (enhances user interface without altering functionality)
  • Refactor (improves code quality without altering functionality)
  • Documentation update
  • Other (please describe below)

Checklist

  • I have verified the accessibility of my changes
  • I have tested all possible scenarios for this change
  • I have updated theme.toml with a sane default for the feature
  • I have made corresponding changes to the documentation:
    • Updated config.toml comments
    • Updated theme.toml comments
    • Updated "Mastering tabi" post in English
    • (Optional) Updated "Mastering tabi" post in Spanish
    • (Optional) Updated "Mastering tabi" post in Catalan

@welpo welpo merged commit 9fc45f2 into main Dec 30, 2023
1 check passed
@welpo welpo deleted the feat/actually-multi-column-tags branch December 30, 2023 16:42
@welpo welpo mentioned this pull request Dec 30, 2023
@welpo welpo added the enhancement New feature or request label Dec 30, 2023
@arichtman
Copy link
Contributor

Amazing, thanks!

Smtbook pushed a commit to Smtbook/zola-theme-tabi that referenced this pull request Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compact tags option
2 participants