Skip to content

Commit f0aaad1

Browse files
committed
fix(display): [site] package header docs link line break on mobile
1 parent 59cb869 commit f0aaad1

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

ux.symfony.com/assets/styles/components/_DocsLink.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
opacity: 1;
2222
padding: var(--space-small, .75rem) var(--space-large, 1.5rem);
2323
transform: translateY(50%);
24+
transition-property: transform;
25+
transition-duration: 0ms;
2426

2527
p {
2628
margin-bottom: 0;
@@ -33,6 +35,14 @@
3335
&:hover {
3436
transform: translateY(50%);
3537
}
38+
39+
@media screen and (max-width: 768px) {
40+
transform: translateY(0);
41+
42+
&:hover {
43+
transform: translateY(0);
44+
}
45+
}
3646
}
3747
}
3848
.DocsLink_content {

ux.symfony.com/templates/components/Package/PackageHeader.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</p>
1313
</div>
1414

15-
<div class="d-flex justify-content-center">
15+
<div class="d-flex justify-content-center flex-column-reverse flex-md-row">
1616
{% if command is not defined or command %}
1717
<twig:TerminalCommand
1818
aria-label="Composer command to install {{ package.humanName }}"
@@ -22,7 +22,7 @@
2222
{% endif %}
2323

2424
<twig:DocsLink
25-
class="ms-3"
25+
class="ms-md-3 align-self-center"
2626
size="sm"
2727
title="Read the docs"
2828
url="{{ package.officialDocsUrl }}"

0 commit comments

Comments
 (0)