From 52fe8ee95d5b26a565820cb4c6204392ff19bd0a Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Sun, 19 Aug 2018 17:14:30 +0200 Subject: [PATCH] Make the privacy dropdown button not look strange when using top placement Inspired by 8fe1f8d4cecb9f2f749c1e1e77b2439dd640ddc5 --- .../glitch/features/composer/options/dropdown/index.js | 1 + .../flavours/glitch/styles/components/composer.scss | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/app/javascript/flavours/glitch/features/composer/options/dropdown/index.js b/app/javascript/flavours/glitch/features/composer/options/dropdown/index.js index b3462e25a4..8cfbac1bb6 100644 --- a/app/javascript/flavours/glitch/features/composer/options/dropdown/index.js +++ b/app/javascript/flavours/glitch/features/composer/options/dropdown/index.js @@ -168,6 +168,7 @@ export default class ComposerOptionsDropdown extends React.PureComponent { const computedClass = classNames('composer--options--dropdown', { active, open, + top: placement === 'top', }); // The result. diff --git a/app/javascript/flavours/glitch/styles/components/composer.scss b/app/javascript/flavours/glitch/styles/components/composer.scss index fab94d8c3b..2267b798c1 100644 --- a/app/javascript/flavours/glitch/styles/components/composer.scss +++ b/app/javascript/flavours/glitch/styles/components/composer.scss @@ -406,6 +406,12 @@ background: $ui-highlight-color; transition: none; } + &.top { + & > .value { + border-radius: 0 0 4px 4px; + box-shadow: 0 4px 4px rgba($base-shadow-color, 0.1); + } + } } }