Skip to content

Commit

Permalink
fix(cc-badge / cc-stretch): prevent layout shifts on Safari
Browse files Browse the repository at this point in the history
Fixes #647
  • Loading branch information
florian-sanders-cc committed Dec 1, 2022
1 parent 131aff7 commit ffd55ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/components/cc-badge/cc-badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export class CcBadge extends LitElement {
}
img {
width: 1em;
height: 1em;
}
`,
Expand Down
1 change: 0 additions & 1 deletion src/components/cc-stretch/cc-stretch.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export class CcStretch extends LitElement {
css`
:host {
display: inline-grid;
width: max-content;
align-items: var(--cc-stretch-align-items, center);
justify-items: var(--cc-stretch-justify-items, center);
}
Expand Down

0 comments on commit ffd55ad

Please sign in to comment.