Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

fix(web): make current-device sign-out easier to find

tianma-if1e582ad38517
diff --git a/apps/web/src/components/settings/LoginDevicesCard.tsx b/apps/web/src/components/settings/LoginDevicesCard.tsx
index d7b390db..e2e7be5f 100644
--- a/apps/web/src/components/settings/LoginDevicesCard.tsx
+++ b/apps/web/src/components/settings/LoginDevicesCard.tsx
@@ -1,5 +1,5 @@
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
-import { Check, Laptop, MonitorSmartphone, Pencil, Smartphone, Tablet, X } from "lucide-react";
+import { Check, Laptop, MonitorSmartphone, Pencil, Smartphone, Tablet, Trash2, X } from "lucide-react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { Button } from "@/components/ui/button";
@@ -204,16 +204,19 @@ export const LoginDevicesCard = ({ authRequired, isLoggingOut, onLogout }: Login
disabled={isLoggingOut}
onClick={onLogout}
>
- {isLoggingOut ? t("session.loggingOut") : t("loginDevices.revokeDevice")}
+ {isLoggingOut ? t("session.loggingOut") : t("loginDevices.revokeCurrent")}
</Button>
) : (
<Button
- size="sm"
- variant="danger"
+ size="icon"
+ variant="ghost"
+ className="text-slate-400 hover:bg-rose-50 hover:text-rose-600"
+ title={t("loginDevices.revokeDevice")}
+ aria-label={t("loginDevices.revokeDevice")}
disabled={revokeMutation.isPending}
onClick={() => setRevokeTarget({ type: "session", sessionId: session.id })}
>
- {t("loginDevices.revokeDevice")}
+ <Trash2 className="h-4 w-4" />
</Button>
)}
</div>
diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.ts
index 64189481..7655a74e 100644
--- a/packages/shared/src/i18n/en-US.ts
+++ b/packages/shared/src/i18n/en-US.ts
@@ -3071,6 +3071,7 @@ export const enUS = {
location: "Location: {{location}}",
lastSeen: "Last active: {{time}}",
signedIn: "Signed in: {{time}}",
+ revokeCurrent: "Sign out",
revokeDevice: "Sign out device",
revokeOthers: "Sign out all other devices",
revokeDeviceTitle: "Sign out this device?",
diff --git a/packages/shared/src/i18n/ja.ts b/packages/shared/src/i18n/ja.ts
index c3347435..3ea7636f 100644
--- a/packages/shared/src/i18n/ja.ts
+++ b/packages/shared/src/i18n/ja.ts
@@ -3060,6 +3060,7 @@ export const ja = {
location: "場所:{{location}}",
lastSeen: "最終利用:{{time}}",
signedIn: "サインイン:{{time}}",
+ revokeCurrent: "サインアウト",
revokeDevice: "端末をサインアウト",
revokeOthers: "他のすべての端末をサインアウト",
revokeDeviceTitle: "この端末をサインアウトしますか?",
diff --git a/packages/shared/src/i18n/pl.ts b/packages/shared/src/i18n/pl.ts
index 0feed531..93ad67ee 100644
--- a/packages/shared/src/i18n/pl.ts
+++ b/packages/shared/src/i18n/pl.ts
@@ -3060,6 +3060,7 @@ export const pl = {
location: "Lokalizacja: {{location}}",
lastSeen: "Ostatnia aktywność: {{time}}",
signedIn: "Zalogowano: {{time}}",
+ revokeCurrent: "Wyloguj się",
revokeDevice: "Wyloguj urządzenie",
revokeOthers: "Wyloguj wszystkie inne urządzenia",
revokeDeviceTitle: "Wylogować to urządzenie?",
diff --git a/packages/shared/src/i18n/ru.ts b/packages/shared/src/i18n/ru.ts
index d7567f4a..53ff70c7 100644
--- a/packages/shared/src/i18n/ru.ts
+++ b/packages/shared/src/i18n/ru.ts
@@ -3071,6 +3071,7 @@ export const ru = {
location: "Местоположение: {{location}}",
lastSeen: "Последняя активность: {{time}}",
signedIn: "Вход выполнен: {{time}}",
+ revokeCurrent: "Выйти",
revokeDevice: "Выйти с устройства",
revokeOthers: "Выйти со всех остальных устройств",
revokeDeviceTitle: "Выйти с этого устройства?",
diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.ts
index 5bce13d8..35d75225 100644
--- a/packages/shared/src/i18n/zh-CN.ts
+++ b/packages/shared/src/i18n/zh-CN.ts
@@ -3069,6 +3069,7 @@ export const zhCN = {
location: "位置:{{location}}",
lastSeen: "上次访问:{{time}}",
signedIn: "登录时间:{{time}}",
+ revokeCurrent: "退出当前登录",
revokeDevice: "退出此设备",
revokeOthers: "退出其他所有设备",
revokeDeviceTitle: "让此设备退出登录?",