Movatterモバイル変換


[0]ホーム

URL:


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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
technoph1le merged 4 commits intoquicksnip-dev:mainfromtryoxiss:main
Mar 21, 2025

Conversation

@tryoxiss
Copy link
Contributor

@tryoxisstryoxiss commentedMar 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 replaces250px withmin(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

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.
@technoph1letechnoph1le merged commit922c915 intoquicksnip-dev:mainMar 21, 2025
2 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@Mathys-GasnierMathys-GasnierMathys-Gasnier approved these changes

@majvaxmajvaxAwaiting requested review from majvax

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

3 participants

@tryoxiss@Mathys-Gasnier@technoph1le

[8]ページ先頭

©2009-2025 Movatter.jp