From 0336d640ecf223e179bc18e02f66dfc7b5c9ea19 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 15 Feb 2021 17:17:19 +0900 Subject: [PATCH 1/6] wip --- src/client/components/note.vue | 4 +- src/client/directives/follow-append.ts | 2 - src/client/ui/chat/date-separated-list.vue | 15 ++++ src/client/ui/chat/header-clock.vue | 44 +++++++++++ src/client/ui/chat/index.vue | 91 +++++++++++++--------- src/client/ui/chat/note.vue | 47 +++++++---- src/client/ui/chat/timeline.vue | 8 +- 7 files changed, 155 insertions(+), 56 deletions(-) create mode 100644 src/client/ui/chat/header-clock.vue diff --git a/src/client/components/note.vue b/src/client/components/note.vue index b839ab3e8f..d532289857 100644 --- a/src/client/components/note.vue +++ b/src/client/components/note.vue @@ -1,6 +1,6 @@ +
+
@@ -103,7 +111,7 @@ @@ -195,5 +218,17 @@ export default defineComponent({ // TODO: これはノート追加アニメーションによるスクロール発生を抑えるために必要だが、position stickyが効かなくなるので、両者を両立させる良い方法を考える overflow: hidden; + + > .new { + position: fixed; + z-index: 1000; + + > button { + display: block; + margin: 16px auto; + padding: 8px 16px; + border-radius: 32px; + } + } } From 911dedf3d7a1342758b35d24ab63758aa82a907c Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 16 Feb 2021 22:17:13 +0900 Subject: [PATCH 5/6] wip --- locales/ja-JP.yml | 1 + src/client/components/ui/tooltip.vue | 40 +++++-- src/client/components/widgets.vue | 153 ++++++++++++++++++++++++++ src/client/directives/tooltip.ts | 5 +- src/client/style.scss | 13 --- src/client/ui/chat/index.vue | 31 ++++-- src/client/ui/chat/side.vue | 6 +- src/client/ui/chat/store.ts | 13 +++ src/client/ui/chat/widgets.vue | 61 ++++++++++ src/client/ui/deck/widgets-column.vue | 113 +++---------------- src/client/ui/default.widgets.vue | 112 +++---------------- 11 files changed, 315 insertions(+), 233 deletions(-) create mode 100644 src/client/components/widgets.vue create mode 100644 src/client/ui/chat/store.ts create mode 100644 src/client/ui/chat/widgets.vue diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 394577f378..680e70f61e 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -97,6 +97,7 @@ cantRenote: "この投稿はRenoteできません。" cantReRenote: "RenoteをRenoteすることはできません。" quote: "引用" pinnedNote: "ピン留めされたノート" +pinned: "ピン留め" you: "あなた" clickToShow: "クリックして表示" sensitive: "閲覧注意" diff --git a/src/client/components/ui/tooltip.vue b/src/client/components/ui/tooltip.vue index 6ea344c54d..b220fe5d8c 100644 --- a/src/client/components/ui/tooltip.vue +++ b/src/client/components/ui/tooltip.vue @@ -1,6 +1,6 @@