From 57e91bc783b8f507e537b30b2207cbc91ff4fd34 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 15 Apr 2018 15:55:47 +0300 Subject: fix jumping inputbox's height --- src/components/post_status_form/post_status_form.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (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 6bcf1c66..7d1886a6 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -239,14 +239,12 @@ const PostStatusForm = { e.dataTransfer.dropEffect = 'copy' }, resize (e) { - const target = e.target || e - target.style.height = 'auto' - const heightPx = target.scrollHeight - 10 - if (heightPx > 54) { - target.style.height = `${target.scrollHeight - 10}px` - } - if (target.value === '') { - target.style.height = '16px' + const vertPadding = window.getComputedStyle(e.target)['padding-top'] + + window.getComputedStyle(e.target)['padding-bottom'] + e.target.style.height = 'auto' + e.target.style.height = `${e.target.scrollHeight - vertPadding}px` + if (e.target.value === '') { + e.target.style.height = '16px' } }, clearError () { -- cgit v1.2.3-70-g09d2 From fc1283da834f4e2864c02fe8eb824b1c918d0710 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 15 Apr 2018 16:45:05 +0300 Subject: fixed nsfw hider having very small height, some border-radii for consistency --- src/components/attachment/attachment.vue | 3 +++ src/components/post_status_form/post_status_form.vue | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src/components/post_status_form') diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index b2f63668..c48fb16b 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -96,6 +96,9 @@ background: rgba(230,230,230,0.6); font-weight: bold; z-index: 4; + line-height: 1; + border-radius: $fallback--tooltipRadius; + border-radius: var(--tooltipRadius, $fallback--tooltipRadius); } .small { diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 88627e3a..5664973c 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -135,10 +135,6 @@ cursor: not-allowed; } - .icon-cancel { - cursor: pointer; - } - form { display: flex; flex-direction: column; -- cgit v1.2.3-70-g09d2 From 55aeb5b4b27ec825835c066e855a272bb5b57406 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 15 Apr 2018 18:22:56 +0300 Subject: fix --- src/components/post_status_form/post_status_form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 7d1886a6..e6742580 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -239,8 +239,8 @@ const PostStatusForm = { e.dataTransfer.dropEffect = 'copy' }, resize (e) { - const vertPadding = window.getComputedStyle(e.target)['padding-top'] + - window.getComputedStyle(e.target)['padding-bottom'] + const vertPadding = Number(window.getComputedStyle(e.target)['padding-top'].substr(0, 1)) + + Number(window.getComputedStyle(e.target)['padding-bottom'].substr(0, 1)) e.target.style.height = 'auto' e.target.style.height = `${e.target.scrollHeight - vertPadding}px` if (e.target.value === '') { -- cgit v1.2.3-70-g09d2 From 4c3d62da04e56651d0f9f68c43d90848702a6f51 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sat, 12 May 2018 15:16:54 +0300 Subject: fixed autocomplete lacking highlight --- src/components/post_status_form/post_status_form.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 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 5664973c..28dd227e 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -22,12 +22,7 @@
-
- - {{candidate.utf}} - {{candidate.screen_name}}{{candidate.name}} -
-
+
{{candidate.utf}} {{candidate.screen_name}}{{candidate.name}} @@ -182,8 +177,8 @@ z-index: 1; box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5); min-width: 75%; - background: $fallback--btn; - background: var(--btn, $fallback--btn); + background: $fallback--bg; + background: var(--bg, $fallback--bg); color: $fallback--lightFg; color: var(--lightFg, $fallback--lightFg); } @@ -212,6 +207,11 @@ color: $fallback--faint; color: var(--faint, $fallback--faint); } + + &.highlighted { + background-color: $fallback--btn; + background-color: var(--btn, $fallback--btn); + } } } -- cgit v1.2.3-70-g09d2