mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Make arrow styles more closely match design
This commit is contained in:
parent
f87db8bfad
commit
d8e03c0906
2 changed files with 4 additions and 3 deletions
|
|
@ -49,12 +49,12 @@ export const DropdownContent = styled(Content, {
|
|||
backgroundColor: '$grayBg',
|
||||
borderRadius: '0.5em',
|
||||
padding: 5,
|
||||
border: '1px solid $grayBorder',
|
||||
outline: '1px solid $grayBorder',
|
||||
boxShadow: '$cardBoxShadow',
|
||||
})
|
||||
|
||||
const StyledArrow = styled(Arrow, {
|
||||
fill: '$grayBase',
|
||||
fill: '$grayBg',
|
||||
})
|
||||
|
||||
const StyledLabel = styled(Label, {
|
||||
|
|
@ -131,7 +131,7 @@ export function Dropdown({
|
|||
>
|
||||
{labelText && <StyledLabel>{labelText}</StyledLabel>}
|
||||
{children}
|
||||
{showArrow && <StyledArrow offset={20} />}
|
||||
{showArrow && <StyledArrow offset={20} width={20} height={10} />}
|
||||
</DropdownContent>
|
||||
</Root>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ export function ArticleActionsMenu(props: ArticleActionsMenuProps): JSX.Element
|
|||
}}
|
||||
>
|
||||
<Dropdown
|
||||
showArrow={true}
|
||||
side={props.layout == 'vertical' ? 'right' : 'bottom'}
|
||||
sideOffset={props.layout == 'vertical' ? 8 : 0}
|
||||
align={props.layout == 'vertical' ? 'start' : 'center'}
|
||||
|
|
|
|||
Loading…
Reference in a new issue