Skip to content

Commit d7c3312

Browse files
committedNov 7, 2024··
fix: version selector position
1 parent 5082ad5 commit d7c3312

File tree

7 files changed

+29
-5
lines changed

7 files changed

+29
-5
lines changed
 

‎dokka-subprojects/plugin-base-frontend/src/main/ui-kit/button/styles.scss

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@
7272
&_dropdown {
7373
padding: var(--size-s2);
7474

75+
font: var(--font-text-s);
76+
7577
&::after {
7678
display: block;
7779

‎dokka-subprojects/plugin-base-frontend/src/main/ui-kit/dropdown/styles.scss

+6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
overflow-y: auto;
2323

24+
width: fit-content;
25+
2426
min-width: 272px;
2527
max-width: 360px;
2628
max-height: 400px;
@@ -54,6 +56,10 @@
5456

5557
&_positioned_left {
5658
left: 0;
59+
60+
@media (width < $breakpoint-desktop-min) {
61+
left: unset;
62+
}
5763
}
5864

5965
&_expanded {

‎dokka-subprojects/plugin-base-frontend/src/main/ui-kit/library-version/styles.scss

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
@import '../_tokens/index';
55

66
.library-version {
7+
box-sizing: border-box;
8+
9+
padding-top: 1px;
10+
711
color: var(--color-text-dt);
812

913
font: var(--font-text-s);
@@ -14,6 +18,8 @@
1418

1519
height: 52px;
1620

21+
padding-left: 12px;
22+
1723
background-color: var(--color-text);
1824
}
1925
}

‎dokka-subprojects/plugin-base/src/main/resources/dokka/ui-kit/ui-kit.css

+10
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149

150150
.button_dropdown {
151151
padding: var(--size-s2);
152+
font: var(--font-text-s);
152153
}
153154

154155
.button_dropdown::after {
@@ -411,6 +412,7 @@
411412
right: 0;
412413
display: none;
413414
overflow-y: auto;
415+
width: fit-content;
414416
min-width: 272px;
415417
max-width: 360px;
416418
max-height: 400px;
@@ -444,6 +446,11 @@
444446
left: 0;
445447
}
446448

449+
@media (width < 900px) {
450+
.dropdown--list_positioned_left {
451+
left: unset;
452+
}
453+
}
447454
.dropdown--list_expanded {
448455
display: block;
449456
}
@@ -1042,6 +1049,8 @@
10421049
}
10431050

10441051
.library-version {
1052+
box-sizing: border-box;
1053+
padding-top: 1px;
10451054
color: var(--color-text-dt);
10461055
font: var(--font-text-s);
10471056
}
@@ -1051,6 +1060,7 @@
10511060
display: flex;
10521061
align-items: center;
10531062
height: 52px;
1063+
padding-left: 12px;
10541064
background-color: var(--color-text);
10551065
}
10561066
}

‎dokka-subprojects/plugin-base/src/main/resources/dokka/ui-kit/ui-kit.min.css

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dokka-subprojects/plugin-base/src/main/resources/dokka/ui-kit/ui-kit.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dokka-subprojects/plugin-versioning/src/main/resources/dokka/styles/multimodule.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
*/
44

55
.versions-dropdown {
6-
margin-left: var(--size-s2);
76
white-space: nowrap;
87
}
98

109
@media (width < 900px) {
1110
.versions-dropdown {
1211
height: 52px;
12+
margin-left: -8px;
1313
}
1414
}
1515

0 commit comments

Comments
 (0)