From df6b75e994e27c477917a48fce159e0565280abe Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Wed, 13 Feb 2019 18:38:34 -0800 Subject: [PATCH] fix: fix slim size compose dialog (#979) fixes #106 --- .../_components/compose/ComposeBox.html | 7 ++++--- .../_components/compose/ComposeFileDrop.html | 14 +++++++++++++- .../_components/compose/ComposeInput.html | 19 ++++++++++++++++++- .../_components/compose/ComposeMedia.html | 4 ++-- .../_components/compose/ComposeMediaItem.html | 12 +++++++++++- 5 files changed, 48 insertions(+), 8 deletions(-) diff --git a/src/routes/_components/compose/ComposeBox.html b/src/routes/_components/compose/ComposeBox.html index 99031035..75a78025 100644 --- a/src/routes/_components/compose/ComposeBox.html +++ b/src/routes/_components/compose/ComposeBox.html @@ -1,7 +1,7 @@ {#if realm === 'home'}

Compose status

{/if} - +
{#if contentWarningShown} @@ -10,11 +10,11 @@
{/if} - + - +
diff --git a/src/routes/_components/compose/ComposeFileDrop.html b/src/routes/_components/compose/ComposeFileDrop.html index 4e590afc..b5a307c5 100644 --- a/src/routes/_components/compose/ComposeFileDrop.html +++ b/src/routes/_components/compose/ComposeFileDrop.html @@ -1,4 +1,4 @@ - +
Drop to upload @@ -34,6 +34,18 @@ border-radius: 6px; } + .file-drop.slim-size { + max-height: 100%; + overflow-y: auto; + overflow-x: hidden; + scrollbar-width: none; + -ms-overflow-style: none; + } + + .file-drop.slim-size::-webkit-scrollbar { + display: none; + } + :global(.file-drop.drop-valid .file-drop-info, .file-drop.drop-invalid .file-drop-info) { display: flex; background: var(--file-drop-mask); diff --git a/src/routes/_components/compose/ComposeInput.html b/src/routes/_components/compose/ComposeInput.html index 50b198ed..549fc2b2 100644 --- a/src/routes/_components/compose/ComposeInput.html +++ b/src/routes/_components/compose/ComposeInput.html @@ -1,6 +1,6 @@