Skip to content

Commit

Permalink
fix: add max-width into Frigade banner
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbarion committed Sep 6, 2023
1 parent cd52f92 commit a5327c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/components/BannerFrigade/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import React from 'react'
// @ts-ignore
import LogoFrigade from '@site/static/img/sponsors/frigade.png'
import './styles.css'

const BannerFrigade = () => {
return (
Expand Down
9 changes: 9 additions & 0 deletions docs/src/components/BannerFrigade/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.sponsor-frigade {
/* same as `--carbon-max-char` */
--frigade-max-char: 20ch;
display: flex;
flex-direction: column;
min-inline-size: 130px;
max-inline-size: calc(130px + var(--frigade-max-char) + 8ch);
max-width: 377px;
}

0 comments on commit a5327c2

Please sign in to comment.