Skip to content

Commit

Permalink
fix: version selector position
Browse files Browse the repository at this point in the history
  • Loading branch information
berezinant committed Nov 7, 2024
1 parent c252eb6 commit c9282cf
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@
&_dropdown {
padding: var(--size-s2);

font: var(--font-text-s);

&::after {
display: block;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

overflow-y: auto;

width: fit-content;

min-width: 272px;
max-width: 360px;
max-height: 400px;
Expand Down Expand Up @@ -54,6 +56,10 @@

&_positioned_left {
left: 0;

@media (width < $breakpoint-desktop-min) {
left: unset;
}
}

&_expanded {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
@import '../_tokens/index';

.library-version {
box-sizing: border-box;

padding-top: 1px;

color: var(--color-text-dt);

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

height: 52px;

padding-left: 12px;

background-color: var(--color-text);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@

.button_dropdown {
padding: var(--size-s2);
font: var(--font-text-s);
}

.button_dropdown::after {
Expand Down Expand Up @@ -411,6 +412,7 @@
right: 0;
display: none;
overflow-y: auto;
width: fit-content;
min-width: 272px;
max-width: 360px;
max-height: 400px;
Expand Down Expand Up @@ -444,6 +446,11 @@
left: 0;
}

@media (width < 900px) {
.dropdown--list_positioned_left {
left: unset;
}
}
.dropdown--list_expanded {
display: block;
}
Expand Down Expand Up @@ -1042,6 +1049,8 @@
}

.library-version {
box-sizing: border-box;
padding-top: 1px;
color: var(--color-text-dt);
font: var(--font-text-s);
}
Expand All @@ -1051,6 +1060,7 @@
display: flex;
align-items: center;
height: 52px;
padding-left: 12px;
background-color: var(--color-text);
}
}
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
*/

.versions-dropdown {
margin-left: var(--size-s2);
white-space: nowrap;
}

@media (width < 900px) {
.versions-dropdown {
height: 52px;
margin-left: -8px;
}
}

Expand Down

0 comments on commit c9282cf

Please sign in to comment.