From f4f8debb92050363e54601b5bd257d413672e0b0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 10 Aug 2021 15:29:30 +0900 Subject: :art: --- src/client/components/post-form.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/components') diff --git a/src/client/components/post-form.vue b/src/client/components/post-form.vue index 969f8563a4..82d28f30e8 100644 --- a/src/client/components/post-form.vue +++ b/src/client/components/post-form.vue @@ -45,7 +45,7 @@ - + -- cgit v1.2.3-freya From e19cc8bebfdc4a4de9a0456c063612eaa9c88a34 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 10 Aug 2021 16:06:14 +0900 Subject: ハッシュタグ入力が空のときに#が付くのを修正 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/components/post-form.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/components') diff --git a/src/client/components/post-form.vue b/src/client/components/post-form.vue index 82d28f30e8..f2c625a556 100644 --- a/src/client/components/post-form.vue +++ b/src/client/components/post-form.vue @@ -615,7 +615,7 @@ export default defineComponent({ viaMobile: isMobile }; - if (this.withHashtags) { + if (this.withHashtags && this.hashtags && this.hashtags.trim() !== '') { const hashtags = this.hashtags.trim().split(' ').map(x => x.startsWith('#') ? x : '#' + x).join(' '); data.text = data.text ? `${data.text} ${hashtags}` : hashtags; } -- cgit v1.2.3-freya From fff3c552e24f7d5b08252696bc55c8a1b9df3509 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 10 Aug 2021 18:19:59 +0900 Subject: perf(client): use function for render slot to improve performance See: https://forum.vuejs.org/t/how-to-avoid-non-function-value-encountered-for-default-slot-warning/107039 --- src/client/components/date-separated-list.vue | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'src/client/components') diff --git a/src/client/components/date-separated-list.vue b/src/client/components/date-separated-list.vue index 6a0c7f29f2..7a4cc5ef98 100644 --- a/src/client/components/date-separated-list.vue +++ b/src/client/components/date-separated-list.vue @@ -48,15 +48,7 @@ export default defineComponent({ render() { if (this.items.length === 0) return; - return h(this.$store.state.animation ? TransitionGroup : 'div', this.$store.state.animation ? { - class: 'sqadhkmv' + (this.noGap ? ' noGap _block' : ''), - name: 'list', - tag: 'div', - 'data-direction': this.direction, - 'data-reversed': this.reversed ? 'true' : 'false', - } : { - class: 'sqadhkmv' + (this.noGap ? ' noGap _block' : ''), - }, this.items.map((item, i) => { + const renderChildren = () => this.items.map((item, i) => { const el = this.$slots.default({ item: item })[0]; @@ -98,7 +90,19 @@ export default defineComponent({ return el; } } - })); + }); + + return h(this.$store.state.animation ? TransitionGroup : 'div', this.$store.state.animation ? { + class: 'sqadhkmv' + (this.noGap ? ' noGap _block' : ''), + name: 'list', + tag: 'div', + 'data-direction': this.direction, + 'data-reversed': this.reversed ? 'true' : 'false', + } : { + class: 'sqadhkmv' + (this.noGap ? ' noGap _block' : ''), + }, { + default: renderChildren + }); }, }); -- cgit v1.2.3-freya From 4149c7782f9efe9450d5c056e7ad22a654717746 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 11 Aug 2021 00:21:24 +0900 Subject: :art: --- src/client/components/ui/button.vue | 13 ++----------- src/client/pages/my-lists/index.vue | 13 +++++++++++-- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'src/client/components') diff --git a/src/client/components/ui/button.vue b/src/client/components/ui/button.vue index 1e72660f33..d6ac42994f 100644 --- a/src/client/components/ui/button.vue +++ b/src/client/components/ui/button.vue @@ -177,17 +177,8 @@ export default defineComponent({ } &:focus { - &:after { - content: ""; - pointer-events: none; - position: absolute; - top: -5px; - right: -5px; - bottom: -5px; - left: -5px; - border: 2px solid var(--accentAlpha03); - border-radius: 10px; - } + outline: solid 2px var(--focus); + outline-offset: 2px; } &.inline + .bghgjjyj { diff --git a/src/client/pages/my-lists/index.vue b/src/client/pages/my-lists/index.vue index e92f11c7d0..7de31bb308 100644 --- a/src/client/pages/my-lists/index.vue +++ b/src/client/pages/my-lists/index.vue @@ -3,7 +3,10 @@ {{ $ts.createList }} - {{ list.name }} + +
{{ list.name }}
+ +
@@ -12,6 +15,7 @@ import { defineComponent } from 'vue'; import MkPagination from '@client/components/ui/pagination.vue'; import MkButton from '@client/components/ui/button.vue'; +import MkAvatars from '@client/components/avatars.vue'; import * as os from '@client/os'; import * as symbols from '@client/symbols'; @@ -19,6 +23,7 @@ export default defineComponent({ components: { MkPagination, MkButton, + MkAvatars, }, data() { @@ -63,7 +68,7 @@ export default defineComponent({ > .lists { > .list { - display: flex; + display: block; padding: 16px; border: solid 1px var(--divider); border-radius: 6px; @@ -72,6 +77,10 @@ export default defineComponent({ border: solid 1px var(--accent); text-decoration: none; } + + > .name { + margin-bottom: 4px; + } } } } -- cgit v1.2.3-freya From 31b6ab9b23d14551e4b37b3b9e7e29f5a016b8ff Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 11 Aug 2021 00:21:48 +0900 Subject: fix chore error --- src/client/components/widgets.vue | 4 ++-- src/client/ui/chat/index.vue | 2 +- src/client/ui/default.widgets.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/client/components') diff --git a/src/client/components/widgets.vue b/src/client/components/widgets.vue index 6e5c2d5ade..150d61c027 100644 --- a/src/client/components/widgets.vue +++ b/src/client/components/widgets.vue @@ -18,12 +18,12 @@
- +
- + diff --git a/src/client/ui/chat/index.vue b/src/client/ui/chat/index.vue index db663c4530..6d6e302e3c 100644 --- a/src/client/ui/chat/index.vue +++ b/src/client/ui/chat/index.vue @@ -55,7 +55,7 @@ {{ $ts.favorites }} - +