From 9e8513b3129b4e7ae22906522418e04aa3db5235 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 25 Apr 2021 13:25:42 +0300 Subject: i18n fixes --- src/components/post_status_form/post_status_form.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/components/post_status_form') diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 6b490aee..c0a85727 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -18,9 +18,9 @@
- @@ -30,7 +30,7 @@ > {{ $t('post_status.account_not_locked_warning_link') }} - +

Date: Tue, 29 Mar 2022 15:46:21 +0300 Subject: re-fix i18n warnings again --- src/components/conversation/conversation.vue | 2 ++ src/components/post_status_form/post_status_form.vue | 1 + src/components/settings_modal/tabs/theme_tab/preview.vue | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/components/post_status_form') diff --git a/src/components/conversation/conversation.vue b/src/components/conversation/conversation.vue index 39c5db33..ccc523a2 100644 --- a/src/components/conversation/conversation.vue +++ b/src/components/conversation/conversation.vue @@ -32,6 +32,7 @@ tag="button" class="button-unstyled -link" @click.prevent="diveToTopLevel" + scope="global" > diff --git a/src/hocs/with_load_more/with_load_more.jsx b/src/hocs/with_load_more/with_load_more.jsx index 705991ca..c0ae1856 100644 --- a/src/hocs/with_load_more/with_load_more.jsx +++ b/src/hocs/with_load_more/with_load_more.jsx @@ -81,7 +81,6 @@ const withLoadMore = ({ } }, render () { - console.log(this.$listeners) const props = { ...this.$props, [childPropName]: this.entries -- cgit v1.2.3-70-g09d2 From a0099ecb6699f02667e7cae39c688e4c0e86f30c Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 30 Mar 2022 23:54:11 +0300 Subject: oops --- src/components/post_status_form/post_status_form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/post_status_form') diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 42c1335e..84a9e29e 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -81,7 +81,7 @@ const PostStatusForm = { emits: [ 'posted', 'resize', - 'mediaplay' + 'mediaplay', 'mediapause' ], components: { -- cgit v1.2.3-70-g09d2 From 666498e7b76144b35d245d4b1c09e1dc62fac84b Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 10 Apr 2022 21:54:02 +0300 Subject: fix main post form having hidden emoji picker --- src/App.scss | 12 ++++++------ src/components/attachment/attachment.scss | 2 +- src/components/desktop_nav/desktop_nav.scss | 8 ++++---- src/components/emoji_picker/emoji_picker.scss | 2 +- src/components/media_modal/media_modal.vue | 2 +- src/components/post_status_form/post_status_form.vue | 1 + src/components/user_panel/user_panel.vue | 1 + src/hocs/with_load_more/with_load_more.scss | 2 +- src/hocs/with_subscription/with_subscription.scss | 2 +- 9 files changed, 17 insertions(+), 15 deletions(-) (limited to 'src/components/post_status_form') diff --git a/src/App.scss b/src/App.scss index d8396562..cc8ef592 100644 --- a/src/App.scss +++ b/src/App.scss @@ -2,7 +2,7 @@ @import './_variables.scss'; :root { - --navbar-height: 50px; + --navbar-height: 3.5em; } html { @@ -159,8 +159,8 @@ nav { } .app-layout { - --miniColumn: 25em; - --maxiColumn: minmax(var(--miniColumn), 45em); + --miniColumn: 25rem; + --maxiColumn: minmax(var(--miniColumn), 45rem); --columnGap: 1em; --status-margin: 0.75em; @@ -227,7 +227,7 @@ nav { &.-has-new-post-button { .column { - padding-bottom: 20em; + padding-bottom: 10rem; } } @@ -301,7 +301,7 @@ nav { cursor: pointer; box-shadow: $fallback--buttonShadow; box-shadow: var(--buttonShadow); - font-size: 14px; + font-size: 1rem; font-family: sans-serif; font-family: var(--interfaceFont, sans-serif); @@ -429,7 +429,7 @@ textarea, color: var(--inputText, $fallback--lightText); font-family: sans-serif; font-family: var(--inputFont, sans-serif); - font-size: 14px; + font-size: 1rem; margin: 0; box-sizing: border-box; display: inline-block; diff --git a/src/components/attachment/attachment.scss b/src/components/attachment/attachment.scss index dfda15bf..b2dea98d 100644 --- a/src/components/attachment/attachment.scss +++ b/src/components/attachment/attachment.scss @@ -173,7 +173,7 @@ margin: 8px; word-break: break-all; h1 { - font-size: 14px; + font-size: 1rem; margin: 0px; } } diff --git a/src/components/desktop_nav/desktop_nav.scss b/src/components/desktop_nav/desktop_nav.scss index 1e731c70..3c2e70b5 100644 --- a/src/components/desktop_nav/desktop_nav.scss +++ b/src/components/desktop_nav/desktop_nav.scss @@ -9,7 +9,7 @@ .inner-nav { display: grid; - grid-template-rows: 50px; + grid-template-rows: var(--navbar-height); grid-template-columns: 2fr auto 2fr; grid-template-areas: "sitename logo actions"; box-sizing: border-box; @@ -75,7 +75,7 @@ img { display: inline-block; - height: 50px; + height: var(--navbar-height); } } @@ -101,8 +101,8 @@ .item { flex: 1; - line-height: 50px; - height: 50px; + line-height: var(--navbar-height); + height: var(--navbar-height); overflow: hidden; display: flex; flex-wrap: wrap; diff --git a/src/components/emoji_picker/emoji_picker.scss b/src/components/emoji_picker/emoji_picker.scss index ec711758..1a696584 100644 --- a/src/components/emoji_picker/emoji_picker.scss +++ b/src/components/emoji_picker/emoji_picker.scss @@ -7,7 +7,7 @@ right: 0; left: 0; margin: 0 !important; - z-index: 1; + z-index: 100; background-color: $fallback--bg; background-color: var(--popover, $fallback--bg); color: $fallback--link; diff --git a/src/components/media_modal/media_modal.vue b/src/components/media_modal/media_modal.vue index c7dcd007..8b76aafb 100644 --- a/src/components/media_modal/media_modal.vue +++ b/src/components/media_modal/media_modal.vue @@ -234,7 +234,7 @@ $modal-view-button-icon-margin: 0.5em; position: absolute; height: $modal-view-button-icon-height; width: $modal-view-button-icon-width; - font-size: 14px; + font-size: 1rem; line-height: $modal-view-button-icon-height; color: #FFF; text-align: center; diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 0fdb6dc7..d6595354 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -509,6 +509,7 @@ flex-direction: column; padding: 0.25em 0.5em 0.5em; line-height:24px; + z-index: 50; } form textarea.form-cw { diff --git a/src/components/user_panel/user_panel.vue b/src/components/user_panel/user_panel.vue index 50949b98..243de387 100644 --- a/src/components/user_panel/user_panel.vue +++ b/src/components/user_panel/user_panel.vue @@ -24,5 +24,6 @@ diff --git a/src/hocs/with_load_more/with_load_more.scss b/src/hocs/with_load_more/with_load_more.scss index 1a26eb8d..de86ed4a 100644 --- a/src/hocs/with_load_more/with_load_more.scss +++ b/src/hocs/with_load_more/with_load_more.scss @@ -10,7 +10,7 @@ border-top-color: var(--border, $fallback--border); .error { - font-size: 14px; + font-size: 1rem; } a { diff --git a/src/hocs/with_subscription/with_subscription.scss b/src/hocs/with_subscription/with_subscription.scss index 52c7d94c..7fd83802 100644 --- a/src/hocs/with_subscription/with_subscription.scss +++ b/src/hocs/with_subscription/with_subscription.scss @@ -4,7 +4,7 @@ text-align: center; .error { - font-size: 14px; + font-size: 1rem; } } } \ No newline at end of file -- cgit v1.2.3-70-g09d2 From e5f0f95356fcae36310c98571b8ab8df9fbce958 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 11 Apr 2022 00:20:27 +0300 Subject: fix dropzone --- src/components/post_status_form/post_status_form.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/post_status_form') diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index d6595354..47b8a213 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -572,7 +572,7 @@ .drop-indicator { position: absolute; - z-index: 1; + z-index: 100; width: 100%; height: 100%; font-size: 5em; -- cgit v1.2.3-70-g09d2 From 2f1f1455aac268a138b0bf6a62d047a07c62e889 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 11 Apr 2022 16:45:16 +0300 Subject: fix notifications scrolling the main column --- src/components/post_status_form/post_status_form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/post_status_form') diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 84a9e29e..2febf226 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -486,7 +486,7 @@ const PostStatusForm = { const bottomBottomPaddingStr = window.getComputedStyle(bottomRef)['padding-bottom'] const bottomBottomPadding = pxStringToNumber(bottomBottomPaddingStr) - const scrollerRef = this.$el.closest('.sidebar-scroller') || + const scrollerRef = this.$el.closest('.column.-scrollable') || this.$el.closest('.post-form-modal-view') || window -- cgit v1.2.3-70-g09d2 From df18a74adc4dbad7ca0daf38c041f9ac482a29c8 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 11 Apr 2022 23:18:46 +0300 Subject: fixes for z-indexes --- src/components/popover/popover.vue | 2 +- src/components/post_status_form/post_status_form.vue | 4 ++-- src/panel.scss | 16 +++++----------- 3 files changed, 8 insertions(+), 14 deletions(-) (limited to 'src/components/post_status_form') diff --git a/src/components/popover/popover.vue b/src/components/popover/popover.vue index 973625d1..91939ee7 100644 --- a/src/components/popover/popover.vue +++ b/src/components/popover/popover.vue @@ -69,7 +69,7 @@ text-align: left; list-style: none; max-width: 100vw; - z-index: 10; + z-index: 200; white-space: nowrap; .dropdown-divider { diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 47b8a213..f052e4de 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -509,7 +509,7 @@ flex-direction: column; padding: 0.25em 0.5em 0.5em; line-height:24px; - z-index: 50; + z-index: 10; } form textarea.form-cw { @@ -572,7 +572,7 @@ .drop-indicator { position: absolute; - z-index: 100; + z-index: 11; width: 100%; height: 100%; font-size: 5em; diff --git a/src/panel.scss b/src/panel.scss index 57059cb9..175d2181 100644 --- a/src/panel.scss +++ b/src/panel.scss @@ -2,7 +2,6 @@ position: relative; display: flex; flex-direction: column; - z-index: 0; background-color: $fallback--bg; background-color: var(--bg, $fallback--bg); @@ -19,7 +18,7 @@ bottom: 0; left: 0; right: 0; - z-index: 100; + z-index: 3; box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6); box-shadow: var(--panelShadow); pointer-events: none; @@ -53,7 +52,6 @@ background-color: var(--bg, $fallback--bg); align-items: baseline; height: var(--panel-heading-height); - z-index: -2; &.-flexible-height { --panel-heading-height: auto; @@ -90,14 +88,6 @@ box-shadow: var(--panelHeaderShadow); } - &::before { - bottom: -20px; - z-index: -1; - border-radius: $fallback--panelRadius $fallback--panelRadius 0 0; - border-radius: var(--panelRadius, $fallback--panelRadius) var(--panelRadius, $fallback--panelRadius) 0 0; - mask: linear-gradient(to bottom, white var(--panel-heading-height), transparent var(--panel-heading-height)); - } - .title { flex: 1 0 auto; font-size: 1.3em; @@ -202,3 +192,7 @@ padding: 1em; margin: 0; } + +.panel-body { + padding: var(--panel-body-padding, 0); +} -- cgit v1.2.3-70-g09d2 From 0db756b4a55cafb59e8ab5baf721998b7289e937 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 12 Apr 2022 01:22:31 +0300 Subject: fix post form/dropzone for good (?) --- src/components/post_status_form/post_status_form.vue | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'src/components/post_status_form') diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index f052e4de..9f2e8846 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -8,15 +8,6 @@ @submit.prevent @dragover.prevent="fileDrag" > -

- -
+
+ +
Date: Wed, 20 Apr 2022 23:22:51 +0300 Subject: cleanup and fixes --- src/App.scss | 2 +- src/components/chat/chat.scss | 2 +- src/components/chat_new/chat_new.scss | 8 ++++---- src/components/chat_new/chat_new.vue | 6 +++--- src/components/login_form/login_form.vue | 2 +- src/components/media_upload/media_upload.vue | 2 +- .../post_status_form/post_status_form.vue | 24 +++++++--------------- src/components/registration/registration.vue | 6 +++--- src/components/remote_follow/remote_follow.vue | 2 +- src/components/select/select.vue | 6 +++--- src/components/settings_modal/settings_modal.scss | 2 +- .../settings_modal/tabs/mutes_and_blocks_tab.scss | 2 +- .../settings_modal/tabs/profile_tab.scss | 2 +- .../settings_modal/tabs/theme_tab/theme_tab.scss | 2 +- src/components/tab_switcher/tab_switcher.scss | 3 ++- src/panel.scss | 2 +- 16 files changed, 32 insertions(+), 41 deletions(-) (limited to 'src/components/post_status_form') diff --git a/src/App.scss b/src/App.scss index bc792263..8c59c77a 100644 --- a/src/App.scss +++ b/src/App.scss @@ -456,7 +456,7 @@ textarea, box-sizing: border-box; display: inline-block; position: relative; - height: 28px; + height: 2em; line-height: 16px; hyphens: none; padding: 8px 0.5em; diff --git a/src/components/chat/chat.scss b/src/components/chat/chat.scss index 63fd2a1f..1e046300 100644 --- a/src/components/chat/chat.scss +++ b/src/components/chat/chat.scss @@ -52,7 +52,7 @@ .go-back-button { text-align: center; - line-height: 100%; + line-height: 1; height: 100%; align-self: start; width: var(--__panel-heading-height-inner); diff --git a/src/components/chat_new/chat_new.scss b/src/components/chat_new/chat_new.scss index 5506143d..240e1a38 100644 --- a/src/components/chat_new/chat_new.scss +++ b/src/components/chat_new/chat_new.scss @@ -22,10 +22,10 @@ } .go-back-button { - cursor: pointer; - width: 28px; text-align: center; - padding: 0.6em; - margin: -0.6em 0.6em -0.6em -0.6em; + line-height: 1; + height: 100%; + align-self: start; + width: var(--__panel-heading-height-inner); } } diff --git a/src/components/chat_new/chat_new.vue b/src/components/chat_new/chat_new.vue index 0790bb37..bf09a379 100644 --- a/src/components/chat_new/chat_new.vue +++ b/src/components/chat_new/chat_new.vue @@ -6,15 +6,15 @@ ref="header" class="panel-heading" > - - +