Fix bds-grid gap alignment issue with child grid elements#1059
Draft
Fix bds-grid gap alignment issue with child grid elements#1059
Conversation
Co-authored-by: lucasoares <10624972+lucasoares@users.noreply.github.com>
|
Great job, no security vulnerabilities found in this Pull Request |
Co-authored-by: lucasoares <10624972+lucasoares@users.noreply.github.com>
Copilot
AI
changed the title
[WIP]
Fix bds-grid gap alignment issue with child grid elements
Jun 24, 2025
bds-grid breaks child layout alignment when using gap on the container
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
When using the
bds-gridcomponent with thegapattribute, child grid elements lose alignment with the container's outer edges. This causes cards to visually shift inward and break the expected layout due to double spacing from both CSS gap and horizontal padding.Before (broken):
Results in misaligned cards that don't touch the container edges.
Required workaround (manual fix):
Solution
Added a simple CSS rule in
src/global-style.scssthat automatically removes horizontal padding from childbds-gridelements when their parent has agapattribute:Benefits
gapwithout padding adjustmentsnone,half,1-12all work correctlyTesting
gapGridFixed)After this fix:
Now works perfectly with proper alignment! 🎉
Fixes #1058.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
example.com/home/REDACTED/work/blip-ds/blip-ds/node_modules/puppeteer/.local-chromium/linux-1002410/chrome-linux/chrome --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --use-gl=angle --mute-audio --headless --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,2213203103363940568,11278762149898707617,131072 --enable-features=NetworkServiceInProcess2 --disable-features=AvoidUnnecessaryBeforeUnloadCheckSync,BackForwardCache,PaintHolding,Translate(dns block)/home/REDACTED/work/blip-ds/blip-ds/node_modules/puppeteer/.local-chromium/linux-1002410/chrome-linux/chrome --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --use-gl=angle --mute-audio --headless --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,17762543706280341618,2342039746979405842,131072 --enable-features=NetworkServiceInProcess2 --disable-features=AvoidUnnecessaryBeforeUnloadCheckSync,BackForwardCache,PaintHolding,Translate(dns block)/home/REDACTED/work/blip-ds/blip-ds/node_modules/puppeteer/.local-chromium/linux-1002410/chrome-linux/chrome --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --use-gl=angle --mute-audio --headless --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,8806340739362283785,11416177663928639231,131072 --enable-features=NetworkServiceInProcess2 --disable-features=AvoidUnnecessaryBeforeUnloadCheckSync,BackForwardCache,PaintHolding,Translate(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.