Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

grid-container: allow the grid to shrink to fit all avalible space to prevent sidescroll. #269

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

Merged
technoph1le merged 4 commits into quicksnip-dev:main from tryoxiss:main
Mar 21, 2025

Conversation

Copy link
Contributor

@tryoxiss tryoxiss commented Mar 12, 2025
edited
Loading

On some browsers, this has no effect on very small sizes such as 250px, since there is another limiting factor which prevents further shrinkage (e.g., word length). However this does work if the size is increased or the other limiting factors are removed.

Description

This simply replaces 250px with min(250px, 100%). This makes it so that if not enough space is avalible, the grid will simply take up all avalible space instead of forcing horizontal scroll.

Type of Change

  • ✨ New snippet
  • :tools: Improvement to an existing snippet
  • 🐞 Bug fix
  • 📖 Documentation update
  • 🔧 Other (please describe):

Checklist

  • I have tested my code and verified it works as expected.
  • My code follows the style and contribution guidelines of this project.
  • Comments are added where necessary for clarity.
  • [N/A] Documentation has been updated (if applicable).
  • [N/A] There are no new warnings or errors from my changes.

Related Issues

Closes #267

Additional Context

Screenshots (Optional)

(column width increased in demos for ease of demonstration)

Before:
image

After:
image

Click to view screenshots

EDIT: Update images so the viewport is exactly the same width

tryoxiss added 4 commits March 12, 2025 12:06
Add myself to comply with quicksnip contribution guidelines
For some reason "edit and fork" didn't save my inital edit which did this on my fork, thanks github.
@technoph1le technoph1le merged commit 922c915 into quicksnip-dev:main Mar 21, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@Mathys-Gasnier Mathys-Gasnier Mathys-Gasnier approved these changes

@majvax majvax Awaiting requested review from majvax majvax is a code owner

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

[Bug] - grid layout / .grid-container will overflow if in a space less than 250 px

AltStyle によって変換されたページ (->オリジナル) /