Skip to content

Commit 4f4d1dd

Browse files
author
Jim Pick
authored
Merge pull request #325 from ipfs-shipyard/fix/dropdown-style
Properly position dropdown
2 parents d2596c7 + 62f42f4 commit 4f4d1dd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/dropdown/Dropdown.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ const MenuArrowUp = ({height = 12, align = 'center', marginLeft = 'auto', margin
4242
<div style={{
4343
zIndex: 600,
4444
position: 'absolute',
45-
width: '100%',
4645
height: `${height}px`,
4746
top: `-${height}px`,
4847
textAlign: align,
49-
overflow: 'hidden'
48+
overflow: 'hidden',
49+
width: '30px',
50+
right: 0
5051
}}>
5152
<div style={{
5253
display: 'inline-block',
@@ -104,7 +105,7 @@ const MenuPosition = ({width, left = `calc(50% - ${width / 2}px)`, children}) =>
104105
<div style={{
105106
position: 'absolute',
106107
width: `${width}px`,
107-
left
108+
right: 0
108109
}}>
109110
{children}
110111
</div>

0 commit comments

Comments
 (0)