From 871aceb89a668abaf232221074a1c86dbff2e0c7 Mon Sep 17 00:00:00 2001 From: Baptiste Lemoine Date: Tue, 2 Jun 2020 17:28:23 +0200 Subject: [PATCH] better placement for popups --- Gemfile.lock | 2 +- .../components/messaging/conversation-item.js | 55 ++++++------ .../messaging/conversation-stream.js | 1 + app/javascript/styles/bliss.scss | 1 + app/javascript/styles/bliss/responsive.scss | 7 ++ app/javascript/styles/mastodon/admin.scss | 9 ++ .../styles/mastodon/messaging/contacts.scss | 4 + .../messaging/messaging-conversation.scss | 84 +++++++++++++++---- .../mastodon/messaging/messaging-stream.scss | 54 +++++++----- .../styles/mastodon/messaging/messaging.scss | 39 ++++++--- 10 files changed, 179 insertions(+), 77 deletions(-) create mode 100644 app/javascript/styles/bliss/responsive.scss diff --git a/Gemfile.lock b/Gemfile.lock index 1aea709e9..ec38cd679 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -808,4 +808,4 @@ RUBY VERSION ruby 2.6.5p114 BUNDLED WITH - 1.17.3 + 2.1.4 diff --git a/app/javascript/mastodon/features/ui/components/messaging/conversation-item.js b/app/javascript/mastodon/features/ui/components/messaging/conversation-item.js index 61ff47545..989626de3 100644 --- a/app/javascript/mastodon/features/ui/components/messaging/conversation-item.js +++ b/app/javascript/mastodon/features/ui/components/messaging/conversation-item.js @@ -51,9 +51,10 @@ export default class ConversationItem extends React.PureComponent { render() { const hasNewClass = this.state.newMessages ? 'has-new-message' : 'nothing-new'; const isVisible = this.state.displayed ? 'displayed' : 'hidden'; + const isReduced = this.state.displayed ? 'full' : 'reduced'; const isFocused = this.state.isFocused ? 'isFocused' : 'not-focused'; const list = ( -
  • +
  • - -
    -
    -