Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Fix dropdown position when in RTL
Browse files Browse the repository at this point in the history
  • Loading branch information
zystvan committed Feb 26, 2017
1 parent cc08ccd commit 335f1df
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/shared/Dropdown.css
@@ -1,15 +1,20 @@
.dropdown {
--width: 150px;
background: var(--theme-body-background);
border: 1px solid var(--theme-splitter-color);
box-shadow: 0 4px 4px 0 var(--theme-search-overlays-semitransparent);
max-height: 300px;
position: absolute;
offset-inline-end: 8px;
right: 8px;
top: 35px;
width: 150px;
width: var(--width);
z-index: 1000;
}

html[dir="rtl"] .dropdown {
right: calc((var(--width) - 11px) * (-1));
}

.dropdown-block {
padding: 0px 2px;
position: relative;
Expand Down

0 comments on commit 335f1df

Please sign in to comment.