Skip to content

Commit fbac4e8

Browse files
committed
mobile dropdown alignment
1 parent 5b1acf8 commit fbac4e8

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
.docItemContent {
22
display: flex;
33
align-items: center;
4-
column-gap: 1.2rem;
54
flex-wrap: wrap;
5+
/* move the h1 margin to padding */
6+
h1 {
7+
margin-bottom: 0 !important;
8+
}
9+
padding-bottom: calc(
10+
var(--ifm-h1-vertical-rhythm-bottom) * var(--ifm-leading)
11+
);
12+
13+
@media (max-width: 767px) {
14+
flex-direction: column;
15+
align-items: flex-start;
16+
}
617
}

apify-docs-theme/src/theme/LLMButtons/styles.module.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,21 @@
44
}
55

66
.llmMenu {
7-
margin-bottom: 1.2rem;
8-
margin-left: auto;
7+
margin-top: 1.2rem;
8+
9+
@media (min-width: 768px) {
10+
margin-left: auto;
11+
}
912
}
1013

1114
.llmButtonWrapper {
12-
/* hack to make the dropdown menu align to the right */
13-
width: 23.3rem;
1415
display: flex;
1516
justify-content: flex-end;
17+
18+
@media (min-width: 768px) {
19+
/* hack to make the dropdown menu align to the right */
20+
width: 23.3rem;
21+
}
1622
}
1723

1824
.llmButton {

0 commit comments

Comments
 (0)