fix: 修复手机端无法下载文件

This commit is contained in:
haorwen
2026-04-13 22:58:41 +08:00
parent 3807ac8a7b
commit 36161c51c0
3 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "vocechat-web", "name": "vocechat-web",
"version": "0.9.77", "version": "0.9.78",
"homepage": "https://voce.chat", "homepage": "https://voce.chat",
"dependencies": { "dependencies": {
"@metamask/onboarding": "^1.0.1", "@metamask/onboarding": "^1.0.1",
+1 -1
View File
@@ -18,7 +18,7 @@ const DownloadArea = ({ copyLink, downloadLink }: Props) => {
> >
<IconCopy className="size-6 fill-gray-500 dark:fill-gray-400" /> <IconCopy className="size-6 fill-gray-500 dark:fill-gray-400" />
</button> </button>
<a className="hidden md:block whitespace-nowrap" download={name} href={downloadLink}> <a className="whitespace-nowrap" download={name} href={downloadLink}>
<IconDownload className="fill-gray-500 dark:fill-gray-400" /> <IconDownload className="fill-gray-500 dark:fill-gray-400" />
</a> </a>
</div> </div>
@@ -54,7 +54,6 @@ const OtherFileMessage = ({
className={clsx( className={clsx(
`bg-stone-100 dark:bg-stone-900 border box-border md:w-96 rounded-md border-gray-300 dark:border-gray-500`, `bg-stone-100 dark:bg-stone-900 border box-border md:w-96 rounded-md border-gray-300 dark:border-gray-500`,
sending && "opacity-90" sending && "opacity-90"
// error ? "border-red-100 dark:border-red-900/50" : "border-gray-300 dark:border-gray-500"
)} )}
> >
<div className="px-3 py-2 flex items-center justify-between gap-2"> <div className="px-3 py-2 flex items-center justify-between gap-2">
@@ -63,20 +62,19 @@ const OtherFileMessage = ({
<span <span
className={clsx( className={clsx(
"font-semibold text-sm truncate text-gray-800 dark:text-gray-100" "font-semibold text-sm truncate text-gray-800 dark:text-gray-100"
// error ? "text-red-500" : "text-gray-800 dark:text-gray-100"
)} )}
> >
{name} {name}
</span> </span>
<span className="hidden md:flex whitespace-nowrap text-xs text-gray-500 dark:text-gray-300 gap-4"> <span className="flex whitespace-nowrap text-xs text-gray-500 dark:text-gray-300 gap-4">
{sending ? ( {sending ? (
<Progress value={progress} width={"80%"} /> <Progress value={progress} width={"80%"} />
) : ( ) : (
<> <>
<strong>{formatBytes(size)}</strong> <strong>{formatBytes(size)}</strong>
<strong>{fromNowTime(created_at)}</strong> <strong className="hidden md:inline">{fromNowTime(created_at)}</strong>
{from_user && ( {from_user && (
<strong> <strong className="hidden md:inline">
by <strong className="font-bold">{from_user.name}</strong> by <strong className="font-bold">{from_user.name}</strong>
</strong> </strong>
)} )}