diff --git a/site/gdocs/components/AllCharts.tsx b/site/gdocs/components/AllCharts.tsx
index 60ae1250c1..6e04a7b217 100644
--- a/site/gdocs/components/AllCharts.tsx
+++ b/site/gdocs/components/AllCharts.tsx
@@ -52,7 +52,7 @@ export function AllCharts(props: AllChartsProps) {
className="article-block__heading h1-semibold"
id={ALL_CHARTS_ID}
>
- {heading}
+ {heading}
- {heading}
+ {heading}
- {heading || RESEARCH_AND_WRITING_DEFAULT_HEADING}
+ {heading || RESEARCH_AND_WRITING_DEFAULT_HEADING}
*:first-child {
+ padding-right: 2rem;
+
+ // On touch devices, the deep-link is hidden, so we don't need the
+ // padding to make space for it.
+ @include touch-device {
+ padding-right: 0;
+ }
+ }
+ }
+
+ .deep-link {
+ // Margin is a bit smaller than the padding on the preceding element to
+ // add a bit of space between them.
+ margin-left: -1.5rem;
+
+ @include touch-device {
+ // It's not visible because of the opacity anyway, but it can add
+ // enough vertical space to cause the heading to wrap to the next
+ // line. Hide it instead, so the heading can use as much space as
+ // possible.
+ display: none;
+ }
}
-}
-h2:hover .deep-link,
-h3:hover .deep-link,
-h4:hover .deep-link,
-h5:hover .deep-link,
-h6:hover .deep-link {
- opacity: 1;
+ &:hover {
+ .deep-link {
+ opacity: 1;
+ }
+ }
}
.heading-latest {