summaryrefslogtreecommitdiff
path: root/packages/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/client/src')
-rw-r--r--packages/client/src/components/global/time.vue3
-rw-r--r--packages/client/src/ui/deck/column.vue11
2 files changed, 6 insertions, 8 deletions
diff --git a/packages/client/src/components/global/time.vue b/packages/client/src/components/global/time.vue
index 02351deb5f..a7f142f961 100644
--- a/packages/client/src/components/global/time.vue
+++ b/packages/client/src/components/global/time.vue
@@ -32,8 +32,7 @@ const relative = $computed(() => {
ago >= 60 ? i18n.t('_ago.minutesAgo', { n: (~~(ago / 60)).toString() }) :
ago >= 10 ? i18n.t('_ago.secondsAgo', { n: (~~(ago % 60)).toString() }) :
ago >= -1 ? i18n.ts._ago.justNow :
- ago < -1 ? i18n.ts._ago.future :
- i18n.ts._ago.unknown);
+ i18n.ts._ago.future);
});
function tick() {
diff --git a/packages/client/src/ui/deck/column.vue b/packages/client/src/ui/deck/column.vue
index fbaea64f56..31063a753d 100644
--- a/packages/client/src/ui/deck/column.vue
+++ b/packages/client/src/ui/deck/column.vue
@@ -213,14 +213,13 @@ function onDragover(ev) {
if (dragging) {
// 自分自身にはドロップさせない
ev.dataTransfer.dropEffect = 'none';
- return;
- }
-
- const isDeckColumn = ev.dataTransfer.types[0] === _DATA_TRANSFER_DECK_COLUMN_;
+ } else {
+ const isDeckColumn = ev.dataTransfer.types[0] === _DATA_TRANSFER_DECK_COLUMN_;
- ev.dataTransfer.dropEffect = isDeckColumn ? 'move' : 'none';
+ ev.dataTransfer.dropEffect = isDeckColumn ? 'move' : 'none';
- if (!dragging && isDeckColumn) draghover = true;
+ if (isDeckColumn) draghover = true;
+ }
}
function onDragleave() {