fix: login-guide button contrast and use ROUTES constants

Dark-mode CTA had both text-white and text-zinc-900; send the user to
login via ROUTES instead of hardcoded paths.
This commit is contained in:
vastsa committed 2026-09-20 01:58:15 +08:00
1 parent b806a36800
commit 1a96ab0224
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -6,6 +6,7 @@ import { useAdminStore } from '@/stores/adminStore'
import { useConfigStore } from '@/stores/configStore'
import { useFileDataStore } from '@/stores/fileData'
import type { SendType, SentFileRecord, UploadProgress } from '@/types'
import { ROUTES } from '@/constants'
import { getClipboardFile, insertTextAtSelection } from '@/utils/clipboard-paste'
import { getErrorMessage } from '@/utils/common'
import { getStorageUnit } from '@/utils/convert'
@@ -110,7 +111,7 @@ export function useSendFlow() {
)
const goLoginForUpload = () => {
router.push({ path: '/login', query: { redirect: '/send' } })
router.push({ path: ROUTES.LOGIN, query: { redirect: ROUTES.SEND } })
}
const checkOpenUpload = () => {
+2 -2
View File
@@ -51,8 +51,8 @@
</div>
<button
type="button"
class="rounded-xl px-5 py-2.5 text-sm font-semibold text-white transition-colors"
:class="isDarkMode ? 'bg-zinc-100 text-zinc-900 hover:bg-white' : 'bg-zinc-900 hover:bg-zinc-700'"
class="rounded-xl px-5 py-2.5 text-sm font-semibold transition-colors"
:class="isDarkMode ? 'bg-zinc-100 text-zinc-900 hover:bg-white' : 'bg-zinc-900 text-white hover:bg-zinc-700'"
@click="goLoginForUpload"
>
{{ t('send.messages.guestUploadBlockedAction') }}