Skip to content

Commit 4b84a12

Browse files
authored
fix(website): Added gap between home page features on smaller screens (#645)
1 parent 37e31b2 commit 4b84a12

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

website/src/components/HomepageFeatures/index.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ const FeatureList: FeatureItem[] = [
1515
imgSrc: require("@site/static/img/files-toml.png").default,
1616
description: (
1717
<>
18-
<a href="/docs/Users/channels">Create your own channels in a simple TOML file and search through
19-
files, git repositories, environment variables, docker images, and more.
18+
<a href="/docs/Users/channels">
19+
Create your own channels in a simple TOML file and search through
20+
files, git repositories, environment variables, docker images, and
21+
more.
2022
</a>
2123
</>
2224
),
@@ -27,8 +29,8 @@ const FeatureList: FeatureItem[] = [
2729
description: (
2830
<>
2931
<a href="/docs/Users/shell-integration">
30-
Television integrates with your shell and provides autocompletion that is both
31-
extensible and configurable to use your own channels.
32+
Television integrates with your shell and provides autocompletion that
33+
is both extensible and configurable to use your own channels.
3234
</a>
3335
</>
3436
),
@@ -48,11 +50,11 @@ function Feature({ title, imgSrc, description }: FeatureItem) {
4850
<p>{description}</p>
4951
</div>
5052
<div className="featureImageContainer">
51-
<img
52-
src={imgSrc}
53+
<img
54+
src={imgSrc}
5355
alt={title}
54-
className={styles.featureImage}
55-
role="img"
56+
className={styles.featureImage}
57+
role="img"
5658
/>
5759
</div>
5860
</div>
@@ -63,7 +65,7 @@ export default function HomepageFeatures(): ReactNode {
6365
return (
6466
<section className={styles.features}>
6567
<div className="container">
66-
<div className="row">
68+
<div className={clsx("row", styles.featuresRow)}>
6769
{FeatureList.map((props, idx) => (
6870
<Feature key={idx} {...props} />
6971
))}

website/src/components/HomepageFeatures/styles.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,9 @@ html[data-theme='dark'] .featureSvg {
4040
flex-direction: column;
4141
align-items: center;
4242
}
43+
44+
@media screen and (max-width: 996px) {
45+
.featuresRow {
46+
gap: 2rem;
47+
}
48+
}

0 commit comments

Comments
 (0)