Skip to content

Commit a5327c2

Browse files
committed
fix: add max-width into Frigade banner
1 parent cd52f92 commit a5327c2

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/src/components/BannerFrigade/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import React from 'react'
33
// @ts-ignore
44
import LogoFrigade from '@site/static/img/sponsors/frigade.png'
5+
import './styles.css'
56

67
const BannerFrigade = () => {
78
return (
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.sponsor-frigade {
2+
/* same as `--carbon-max-char` */
3+
--frigade-max-char: 20ch;
4+
display: flex;
5+
flex-direction: column;
6+
min-inline-size: 130px;
7+
max-inline-size: calc(130px + var(--frigade-max-char) + 8ch);
8+
max-width: 377px;
9+
}

0 commit comments

Comments
 (0)