feat(desktop-download): 优化下载页响应式布局与键盘导航
This commit is contained in:
+11
-1
@@ -1,6 +1,6 @@
|
|||||||
# 变更记录(CHANGELOG)
|
# 变更记录(CHANGELOG)
|
||||||
|
|
||||||
> 状态:有效(持续追加) · 更新:2026-11-21 · 版本:v3.7
|
> 状态:有效(持续追加) · 更新:2026-11-23 · 版本:v3.8
|
||||||
|
|
||||||
对现状仍有影响的功能与修复记录,按日期倒序。改造、迁移、优化等一次性过程不在此记录。
|
对现状仍有影响的功能与修复记录,按日期倒序。改造、迁移、优化等一次性过程不在此记录。
|
||||||
|
|
||||||
@@ -8,6 +8,16 @@
|
|||||||
|
|
||||||
**记录规则**:每条写“范围、变更、影响、回滚、关联”五项;回滚优先 `git revert <提交>`,提交含多项改动时按文件还原(`git checkout <提交>^ -- <文件>`),不整仓 reset。本文不作为规则依据。
|
**记录规则**:每条写“范围、变更、影响、回滚、关联”五项;回滚优先 `git revert <提交>`,提交含多项改动时按文件还原(`git checkout <提交>^ -- <文件>`),不整仓 reset。本文不作为规则依据。
|
||||||
|
|
||||||
|
## 2026-11-23
|
||||||
|
|
||||||
|
### 优化 · WeyAi 桌面端下载页
|
||||||
|
|
||||||
|
- **范围**:独立下载页 `/weyai/download` 与用户中心内嵌下载页。
|
||||||
|
- **变更**:独立页扩大桌面内容区,整合版本信息、打开入口和推荐安装包。两处下载页均按系统分组展示安装包,按可用宽度切换列数,文件名完整换行,交互色跟随系统主题配置。
|
||||||
|
- **影响**:鼠标或键盘激活“其他平台与架构”后,焦点落在安装包分区标题,随后按 Tab 可进入第一个包的下载按钮。
|
||||||
|
- **回滚**:按关联文件还原本条对应的布局、样式和焦点处理。
|
||||||
|
- **关联**:`src/pages/WeyAiDownload/{index.jsx,weyai-download.css}`、`docs/ui/GLOBAL_UI_BASELINE.md` 第 5 节。
|
||||||
|
|
||||||
## 2026-11-21
|
## 2026-11-21
|
||||||
|
|
||||||
### 修复 · 视频生成任务队列分页
|
### 修复 · 视频生成任务队列分页
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# 后台 UI 全局基线
|
# 后台 UI 全局基线
|
||||||
|
|
||||||
> 状态:有效 · 适用:antd 6.7.0 · 更新:2026-11-19 · 版本:v3.12
|
> 状态:有效 · 适用:antd 6.7.0 · 更新:2026-11-23 · 版本:v3.13
|
||||||
|
|
||||||
后台外壳与布局基线:顶栏、侧栏、公告、页头与内容边距、登录页,以及原型未定义场景、登录关卡与验收流程。主题与组件样式见 `UI_COMPONENT_STANDARDS.md`。
|
后台外壳与布局基线:顶栏、侧栏、公告、页头与内容边距、登录页,以及原型未定义场景、登录关卡与验收流程。主题与组件样式见 `UI_COMPONENT_STANDARDS.md`。
|
||||||
|
|
||||||
@@ -94,6 +94,7 @@
|
|||||||
|
|
||||||
- 带侧栏页面按 4.4;控制台按 `CONSOLE_SPEC.md`;其余页面内容默认 24px 30px、移动 16px。筛选区自然换行,表格在自身容器横向滚动;不通过隐藏正文、裁剪校验信息或固定整页宽度迎合截图。
|
- 带侧栏页面按 4.4;控制台按 `CONSOLE_SPEC.md`;其余页面内容默认 24px 30px、移动 16px。筛选区自然换行,表格在自身容器横向滚动;不通过隐藏正文、裁剪校验信息或固定整页宽度迎合截图。
|
||||||
- 模型超市与技能超市的工作区居中,含内边距的最大宽度为 1760px;横向内边距为 `clamp(20px, 4vw, 80px)`,Hero 搜索区域沿用同一横向留白,600px 及以下为 20px。覆盖 3840 / 2560 / 1920 至 360px 宽度,目录按实际可用宽度减少列数,保留卡片正文和控件正常字号,不通过整体缩放压缩内容。
|
- 模型超市与技能超市的工作区居中,含内边距的最大宽度为 1760px;横向内边距为 `clamp(20px, 4vw, 80px)`,Hero 搜索区域沿用同一横向留白,600px 及以下为 20px。覆盖 3840 / 2560 / 1920 至 360px 宽度,目录按实际可用宽度减少列数,保留卡片正文和控件正常字号,不通过整体缩放压缩内容。
|
||||||
|
- WeyAi 独立下载页以 `clamp(1440px, 82vw, 1920px)` 为居中内容区的最大宽度。介绍与推荐安装包共用首屏容器,窄屏上下排列。安装包按系统分组,按内容区宽度切换列数,文件名可换行;跳转到全部安装包时将焦点移到分区标题。用户中心内嵌页沿用第 4.4 节的页头与内容边距。
|
||||||
- 背景图优先复用原型的原始 SVG / 图片,放入 `src/assets/prototype` 并注明来源;原型用 CSS 绘制的背景按测量值在页面作用域复现,不用生成插画替代。
|
- 背景图优先复用原型的原始 SVG / 图片,放入 `src/assets/prototype` 并注明来源;原型用 CSS 绘制的背景按测量值在页面作用域复现,不用生成插画替代。
|
||||||
- 企业工作台横幅 `.ew-hero` 的浅金 / 深棕背景与三层轮廓只用于 `.org-workbench`,不扩散到其他页面。
|
- 企业工作台横幅 `.ew-hero` 的浅金 / 深棕背景与三层轮廓只用于 `.org-workbench`,不扩散到其他页面。
|
||||||
- 原型未定义、antd 有组件:用当前版本默认样式与主题 token。antd 无对应部件:语义背景 / 文字 / 边框,无装饰背景、阴影与动画,间距 8 / 16 / 24px,窄屏堆叠且操作可达;新增此类统一规则先写入本文。
|
- 原型未定义、antd 有组件:用当前版本默认样式与主题 token。antd 无对应部件:语义背景 / 文字 / 边框,无装饰背景、阴影与动画,间距 8 / 16 / 24px,窄屏堆叠且操作可达;新增此类统一规则先写入本文。
|
||||||
|
|||||||
+171
-147
@@ -1,8 +1,7 @@
|
|||||||
// WeyAi 桌面端下载页(方案 4.8)。两种挂载方式,同一个组件:
|
// WeyAi 桌面端下载页(方案 4.8)。两种挂载方式,同一个组件:
|
||||||
// - /weyai/download 独立公开路由,不需要登录,自带顶部让位与页面背景;
|
// - /weyai/download 独立公开路由,不需要登录,自带顶部让位与页面背景;
|
||||||
// - /user-center/weyai-download 嵌在用户中心里(embedded),侧栏保留、背景由 shell 提供。
|
// - /user-center/weyai-download 嵌在用户中心里(embedded),侧栏保留、背景由 shell 提供。
|
||||||
// 结构:hero(版本/动作)→ 为你推荐 → 客户端能做什么 → 全部安装包 → 三步开始。
|
// 首屏展示版本、入口和推荐安装包,后续按系统列出安装包和使用说明。
|
||||||
// 加载失败 / 未开放 / 暂无安装包三种状态都保留 hero 与说明区,只替换安装包区域。
|
|
||||||
|
|
||||||
import { I18N_TECHNICAL_TEXT } from '../../i18n/technicalText.js';
|
import { I18N_TECHNICAL_TEXT } from '../../i18n/technicalText.js';
|
||||||
import {
|
import {
|
||||||
@@ -11,7 +10,7 @@ import {
|
|||||||
Globe as ActionGlobe,
|
Globe as ActionGlobe,
|
||||||
ExternalLink as ActionExternalLink,
|
ExternalLink as ActionExternalLink,
|
||||||
} from '@/components/common/icons/ActionIcons';
|
} from '@/components/common/icons/ActionIcons';
|
||||||
import React, { useContext, useEffect, useMemo, useState } from 'react';
|
import React, { useContext, useEffect, useMemo, useRef, useState } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { Button, Skeleton, Tag } from 'antd';
|
import { Button, Skeleton, Tag } from 'antd';
|
||||||
import {
|
import {
|
||||||
@@ -45,6 +44,7 @@ import './weyai-download.css';
|
|||||||
// 不带动作只唤起应用(navigate 动作要求目标路由在桌面端白名单里)
|
// 不带动作只唤起应用(navigate 动作要求目标路由在桌面端白名单里)
|
||||||
const OPEN_APP_URL = 'weyai://';
|
const OPEN_APP_URL = 'weyai://';
|
||||||
const ALL_PACKAGES_ID = 'weyai-download-all';
|
const ALL_PACKAGES_ID = 'weyai-download-all';
|
||||||
|
const PACKAGES_HEADING_ID = 'weyai-download-all-title';
|
||||||
|
|
||||||
// 更新源清单里的 releaseDate 是 ISO 时间串(2026-09-20T08:00:00.000Z),
|
// 更新源清单里的 releaseDate 是 ISO 时间串(2026-09-20T08:00:00.000Z),
|
||||||
// 展示只需要日期。固定用 ISO 日期(UTC):按语种本地化会让泰语走佛历、
|
// 展示只需要日期。固定用 ISO 日期(UTC):按语种本地化会让泰语走佛历、
|
||||||
@@ -64,6 +64,19 @@ function PlatformIcon({ platform, size = 18 }) {
|
|||||||
return <Icon size={size} aria-hidden='true' />;
|
return <Icon size={size} aria-hidden='true' />;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function FileMeta({ name, size, version, releaseVersion }) {
|
||||||
|
const details = [
|
||||||
|
size ? formatSize(size) : '',
|
||||||
|
version && version !== releaseVersion ? `v${version}` : '',
|
||||||
|
].filter(Boolean);
|
||||||
|
return (
|
||||||
|
<div className='wd-file__meta'>
|
||||||
|
<span className='wd-file__name'>{name}</span>
|
||||||
|
{details.length > 0 && <span>{details.join(' · ')}</span>}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// 状态卡:加载失败 / 未开放 / 暂无安装包共用一个壳
|
// 状态卡:加载失败 / 未开放 / 暂无安装包共用一个壳
|
||||||
function StateCard({ icon, title, desc, danger, actions }) {
|
function StateCard({ icon, title, desc, danger, actions }) {
|
||||||
return (
|
return (
|
||||||
@@ -96,6 +109,8 @@ const WeyAiDownload = ({ embedded = false }) => {
|
|||||||
const [loadError, setLoadError] = useState('');
|
const [loadError, setLoadError] = useState('');
|
||||||
const [release, setRelease] = useState(null);
|
const [release, setRelease] = useState(null);
|
||||||
const [client, setClient] = useState({ os: '', arch: '' });
|
const [client, setClient] = useState({ os: '', arch: '' });
|
||||||
|
const packagesRef = useRef(null);
|
||||||
|
const packagesHeadingRef = useRef(null);
|
||||||
|
|
||||||
const archLabel = (arch) => {
|
const archLabel = (arch) => {
|
||||||
if (arch === 'arm64') return t('ARM 64 位');
|
if (arch === 'arm64') return t('ARM 64 位');
|
||||||
@@ -167,18 +182,13 @@ const WeyAiDownload = ({ embedded = false }) => {
|
|||||||
// 手机端(目前只有 Android):发布过才有,没有就整块不显示
|
// 手机端(目前只有 Android):发布过才有,没有就整块不显示
|
||||||
const mobileRelease = release?.mobile || null;
|
const mobileRelease = release?.mobile || null;
|
||||||
const androidApk = mobileRelease?.android || null;
|
const androidApk = mobileRelease?.android || null;
|
||||||
const androidMeta = androidApk
|
const showPackages =
|
||||||
? [
|
statusLoaded &&
|
||||||
androidApk.name,
|
loading === false &&
|
||||||
androidApk.size ? formatSize(androidApk.size) : '',
|
downloadEnabled &&
|
||||||
// 和桌面端同版本时不重复写版本号(同桌面端安装包行的规则),免得这一行被截断
|
!releaseDisabled &&
|
||||||
mobileRelease.version && mobileRelease.version !== release?.version
|
!loadError &&
|
||||||
? `v${mobileRelease.version}`
|
files.length > 0;
|
||||||
: '',
|
|
||||||
]
|
|
||||||
.filter(Boolean)
|
|
||||||
.join(' · ')
|
|
||||||
: '';
|
|
||||||
|
|
||||||
const features = useMemo(
|
const features = useMemo(
|
||||||
() => [
|
() => [
|
||||||
@@ -227,9 +237,10 @@ const WeyAiDownload = ({ embedded = false }) => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const scrollToAll = () => {
|
const scrollToAll = () => {
|
||||||
document.getElementById(ALL_PACKAGES_ID)?.scrollIntoView({
|
packagesHeadingRef.current?.focus({ preventScroll: true });
|
||||||
|
packagesRef.current?.scrollIntoView({
|
||||||
behavior: window.matchMedia('(prefers-reduced-motion: reduce)').matches
|
behavior: window.matchMedia('(prefers-reduced-motion: reduce)').matches
|
||||||
? 'instant'
|
? 'auto'
|
||||||
: 'smooth',
|
: 'smooth',
|
||||||
block: 'start',
|
block: 'start',
|
||||||
});
|
});
|
||||||
@@ -237,17 +248,6 @@ const WeyAiDownload = ({ embedded = false }) => {
|
|||||||
|
|
||||||
const download = (url) => window.open(url, '_self');
|
const download = (url) => window.open(url, '_self');
|
||||||
|
|
||||||
const fileMeta = (file) =>
|
|
||||||
[
|
|
||||||
file.name,
|
|
||||||
file.size ? formatSize(file.size) : '',
|
|
||||||
file.version && file.version !== release?.version
|
|
||||||
? `v${file.version}`
|
|
||||||
: '',
|
|
||||||
]
|
|
||||||
.filter(Boolean)
|
|
||||||
.join(' · ');
|
|
||||||
|
|
||||||
const renderFileRow = (file) => {
|
const renderFileRow = (file) => {
|
||||||
const isReco = recommended && recommended.url === file.url;
|
const isReco = recommended && recommended.url === file.url;
|
||||||
return (
|
return (
|
||||||
@@ -261,9 +261,12 @@ const WeyAiDownload = ({ embedded = false }) => {
|
|||||||
{file.kind && <Tag>{file.kind}</Tag>}
|
{file.kind && <Tag>{file.kind}</Tag>}
|
||||||
{isReco && <Tag className='wd-recommended-tag'>{t('推荐')}</Tag>}
|
{isReco && <Tag className='wd-recommended-tag'>{t('推荐')}</Tag>}
|
||||||
</div>
|
</div>
|
||||||
<span className='wd-file__meta' title={file.name}>
|
<FileMeta
|
||||||
{fileMeta(file)}
|
name={file.name}
|
||||||
</span>
|
size={file.size}
|
||||||
|
version={file.version}
|
||||||
|
releaseVersion={release?.version}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Button
|
<Button
|
||||||
icon={<ActionDownload size={16} aria-hidden />}
|
icon={<ActionDownload size={16} aria-hidden />}
|
||||||
@@ -326,7 +329,11 @@ const WeyAiDownload = ({ embedded = false }) => {
|
|||||||
>
|
>
|
||||||
{t('下载 WeyAi')}
|
{t('下载 WeyAi')}
|
||||||
</Button>
|
</Button>
|
||||||
<Button type='text' onClick={scrollToAll}>
|
<Button
|
||||||
|
type='text'
|
||||||
|
onClick={scrollToAll}
|
||||||
|
aria-controls={ALL_PACKAGES_ID}
|
||||||
|
>
|
||||||
{t('其他平台与架构')}
|
{t('其他平台与架构')}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
@@ -405,7 +412,11 @@ const WeyAiDownload = ({ embedded = false }) => {
|
|||||||
</div>
|
</div>
|
||||||
{client.os !== 'mobile' && (
|
{client.os !== 'mobile' && (
|
||||||
<div className='wd-reco__actions'>
|
<div className='wd-reco__actions'>
|
||||||
<Button type='primary' onClick={scrollToAll}>
|
<Button
|
||||||
|
type='primary'
|
||||||
|
onClick={scrollToAll}
|
||||||
|
aria-controls={ALL_PACKAGES_ID}
|
||||||
|
>
|
||||||
{t('查看全部安装包')}
|
{t('查看全部安装包')}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
@@ -415,7 +426,7 @@ const WeyAiDownload = ({ embedded = false }) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const renderPackages = () => {
|
const renderPackageState = () => {
|
||||||
if (!statusLoaded || loading) {
|
if (!statusLoaded || loading) {
|
||||||
return (
|
return (
|
||||||
<section className='wd-card wd-skeleton' aria-busy='true'>
|
<section className='wd-card wd-skeleton' aria-busy='true'>
|
||||||
@@ -452,87 +463,97 @@ const WeyAiDownload = ({ embedded = false }) => {
|
|||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (files.length === 0) {
|
|
||||||
return (
|
|
||||||
<StateCard
|
|
||||||
icon={<Package size={26} aria-hidden='true' />}
|
|
||||||
title={t('暂无可下载的安装包')}
|
|
||||||
desc={t('请稍后再来,或联系管理员')}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return (
|
return (
|
||||||
<>
|
<StateCard
|
||||||
{renderRecommended()}
|
icon={<Package size={26} aria-hidden='true' />}
|
||||||
<section id={ALL_PACKAGES_ID} className='flex flex-col gap-3'>
|
title={t('暂无可下载的安装包')}
|
||||||
<div className='wd-section-head'>
|
desc={t('请稍后再来,或联系管理员')}
|
||||||
<h2>{t('全部安装包')}</h2>
|
/>
|
||||||
<p>
|
|
||||||
{t('共 {{count}} 个文件', {
|
|
||||||
count: files.length + (androidApk ? 1 : 0),
|
|
||||||
})}
|
|
||||||
{release?.version ? ` · v${release.version}` : ''}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div className='wd-platforms'>
|
|
||||||
{platformsWithFiles.map((platform) => (
|
|
||||||
<section key={platform} className='wd-card wd-platform'>
|
|
||||||
<div className='wd-platform__head'>
|
|
||||||
<span className='wd-platform__name'>
|
|
||||||
<PlatformIcon platform={platform} />
|
|
||||||
{PLATFORM_LABEL[platform]}
|
|
||||||
</span>
|
|
||||||
<span className='wd-platform__count'>
|
|
||||||
{t('{{count}} 个安装包', {
|
|
||||||
count: groups[platform].length,
|
|
||||||
})}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
{groups[platform].map(renderFileRow)}
|
|
||||||
</section>
|
|
||||||
))}
|
|
||||||
{androidApk && (
|
|
||||||
<section className='wd-card wd-platform'>
|
|
||||||
<div className='wd-platform__head'>
|
|
||||||
<span className='wd-platform__name'>
|
|
||||||
<Smartphone size={18} aria-hidden='true' />
|
|
||||||
{t('手机端 · Android')}
|
|
||||||
</span>
|
|
||||||
<span className='wd-platform__count'>
|
|
||||||
{t('{{count}} 个安装包', { count: 1 })}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div className='wd-file'>
|
|
||||||
<div className='wd-file__main'>
|
|
||||||
<div className='wd-file__title'>
|
|
||||||
<span>{I18N_TECHNICAL_TEXT.ANDROID}</span>
|
|
||||||
<Tag>apk</Tag>
|
|
||||||
</div>
|
|
||||||
<span className='wd-file__meta' title={androidApk.name}>
|
|
||||||
{androidMeta}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<Button
|
|
||||||
icon={<ActionDownload size={16} aria-hidden />}
|
|
||||||
aria-label={`${t('下载')} ${androidApk.name}`}
|
|
||||||
onClick={() => download(androidApk.url)}
|
|
||||||
>
|
|
||||||
{t('下载')}
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
<div className='wd-platform__note'>
|
|
||||||
{t(
|
|
||||||
'在手机上扫码连接电脑上的 WeyAi,或用本站账号登录网页版,随时继续对话',
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const renderPackages = () => (
|
||||||
|
<section
|
||||||
|
ref={packagesRef}
|
||||||
|
id={ALL_PACKAGES_ID}
|
||||||
|
className='wd-section'
|
||||||
|
aria-labelledby={PACKAGES_HEADING_ID}
|
||||||
|
>
|
||||||
|
<div className='wd-section-head'>
|
||||||
|
<h2 ref={packagesHeadingRef} id={PACKAGES_HEADING_ID} tabIndex={-1}>
|
||||||
|
{t('全部安装包')}
|
||||||
|
</h2>
|
||||||
|
<p>
|
||||||
|
{t('共 {{count}} 个文件', {
|
||||||
|
count: files.length + (androidApk ? 1 : 0),
|
||||||
|
})}
|
||||||
|
{release?.version ? ` · v${release.version}` : ''}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div className='wd-platforms'>
|
||||||
|
{platformsWithFiles.map((platform) => (
|
||||||
|
<section key={platform} className='wd-card wd-platform'>
|
||||||
|
<div className='wd-platform__head'>
|
||||||
|
<h3 className='wd-platform__name'>
|
||||||
|
<PlatformIcon platform={platform} />
|
||||||
|
{PLATFORM_LABEL[platform]}
|
||||||
|
</h3>
|
||||||
|
<span className='wd-platform__count'>
|
||||||
|
{t('{{count}} 个安装包', {
|
||||||
|
count: groups[platform].length,
|
||||||
|
})}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div className='wd-platform__files'>
|
||||||
|
{groups[platform].map(renderFileRow)}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
))}
|
||||||
|
{androidApk && (
|
||||||
|
<section className='wd-card wd-platform'>
|
||||||
|
<div className='wd-platform__head'>
|
||||||
|
<h3 className='wd-platform__name'>
|
||||||
|
<Smartphone size={18} aria-hidden='true' />
|
||||||
|
{t('手机端 · Android')}
|
||||||
|
</h3>
|
||||||
|
<span className='wd-platform__count'>
|
||||||
|
{t('{{count}} 个安装包', { count: 1 })}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div className='wd-platform__files'>
|
||||||
|
<div className='wd-file'>
|
||||||
|
<div className='wd-file__main'>
|
||||||
|
<div className='wd-file__title'>
|
||||||
|
<span>{I18N_TECHNICAL_TEXT.ANDROID}</span>
|
||||||
|
<Tag>apk</Tag>
|
||||||
|
</div>
|
||||||
|
<FileMeta
|
||||||
|
name={androidApk.name}
|
||||||
|
size={androidApk.size}
|
||||||
|
version={mobileRelease.version}
|
||||||
|
releaseVersion={release?.version}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<Button
|
||||||
|
icon={<ActionDownload size={16} aria-hidden />}
|
||||||
|
aria-label={`${t('下载')} ${androidApk.name}`}
|
||||||
|
onClick={() => download(androidApk.url)}
|
||||||
|
>
|
||||||
|
{t('下载')}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className='wd-platform__note'>
|
||||||
|
{t(
|
||||||
|
'在手机上扫码连接电脑上的 WeyAi,或用本站账号登录网页版,随时继续对话',
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
|
||||||
const rootClass = `weyai-download ${
|
const rootClass = `weyai-download ${
|
||||||
embedded ? 'weyai-download--embedded' : 'weyai-download--standalone'
|
embedded ? 'weyai-download--embedded' : 'weyai-download--standalone'
|
||||||
}`;
|
}`;
|
||||||
@@ -561,48 +582,51 @@ const WeyAiDownload = ({ embedded = false }) => {
|
|||||||
return (
|
return (
|
||||||
<div className={rootClass}>
|
<div className={rootClass}>
|
||||||
<div className='weyai-download__inner'>
|
<div className='weyai-download__inner'>
|
||||||
<div className='wd-hero'>
|
<div className='wd-intro'>
|
||||||
{!embedded && (
|
<div className='wd-hero'>
|
||||||
<div className='wd-eyebrow'>
|
{!embedded && (
|
||||||
<MonitorDown size={16} aria-hidden='true' />
|
<div className='wd-eyebrow'>
|
||||||
{I18N_TECHNICAL_TEXT.WEYAI_DESKTOP}
|
<MonitorDown size={16} aria-hidden='true' />
|
||||||
</div>
|
{I18N_TECHNICAL_TEXT.WEYAI_DESKTOP}
|
||||||
)}
|
</div>
|
||||||
<UserCenterPageHeader
|
|
||||||
title={t('下载 WeyAi 桌面端')}
|
|
||||||
subtitle={t('用你的账号登录,直接使用平台提供的模型和余额')}
|
|
||||||
breadcrumb={embedded ? undefined : null}
|
|
||||||
extra={heroActions}
|
|
||||||
/>
|
|
||||||
<div className='wd-hero-meta'>
|
|
||||||
{release?.version && (
|
|
||||||
<span className='wd-chip'>
|
|
||||||
{t('最新版本 v{{version}}', { version: release.version })}
|
|
||||||
</span>
|
|
||||||
)}
|
)}
|
||||||
{release?.releaseDate && (
|
<UserCenterPageHeader
|
||||||
|
title={t('下载 WeyAi 桌面端')}
|
||||||
|
subtitle={t('用你的账号登录,直接使用平台提供的模型和余额')}
|
||||||
|
breadcrumb={embedded ? undefined : null}
|
||||||
|
extra={heroActions}
|
||||||
|
/>
|
||||||
|
<div className='wd-hero-meta'>
|
||||||
|
{release?.version && (
|
||||||
|
<span className='wd-chip'>
|
||||||
|
{t('最新版本 v{{version}}', { version: release.version })}
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
{release?.releaseDate && (
|
||||||
|
<span className='wd-chip wd-chip--muted'>
|
||||||
|
{t('发布于 {{date}}', {
|
||||||
|
date: formatReleaseDate(release.releaseDate),
|
||||||
|
})}
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
{/* 有清单时按实际有安装包的平台展示,别在缺某平台 feed 时还声称支持 */}
|
||||||
<span className='wd-chip wd-chip--muted'>
|
<span className='wd-chip wd-chip--muted'>
|
||||||
{t('发布于 {{date}}', {
|
{[
|
||||||
date: formatReleaseDate(release.releaseDate),
|
...(platformsWithFiles.length
|
||||||
})}
|
? platformsWithFiles
|
||||||
|
: PLATFORMS
|
||||||
|
).map((platform) => PLATFORM_LABEL[platform]),
|
||||||
|
...(androidApk ? ['Android'] : []),
|
||||||
|
].join(' · ')}
|
||||||
</span>
|
</span>
|
||||||
)}
|
</div>
|
||||||
{/* 有清单时按实际有安装包的平台展示,别在缺某平台 feed 时还声称支持 */}
|
|
||||||
<span className='wd-chip wd-chip--muted'>
|
|
||||||
{[
|
|
||||||
...(platformsWithFiles.length
|
|
||||||
? platformsWithFiles
|
|
||||||
: PLATFORMS
|
|
||||||
).map((platform) => PLATFORM_LABEL[platform]),
|
|
||||||
...(androidApk ? ['Android'] : []),
|
|
||||||
].join(' · ')}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
{showPackages ? renderRecommended() : renderPackageState()}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{renderPackages()}
|
{showPackages && renderPackages()}
|
||||||
|
|
||||||
<section className='flex flex-col gap-3'>
|
<section className='wd-section'>
|
||||||
<div className='wd-section-head'>
|
<div className='wd-section-head'>
|
||||||
<h2>{t('客户端能做什么')}</h2>
|
<h2>{t('客户端能做什么')}</h2>
|
||||||
</div>
|
</div>
|
||||||
@@ -621,7 +645,7 @@ const WeyAiDownload = ({ embedded = false }) => {
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className='flex flex-col gap-3'>
|
<section className='wd-section'>
|
||||||
<div className='wd-section-head'>
|
<div className='wd-section-head'>
|
||||||
<h2>{t('三步开始使用')}</h2>
|
<h2>{t('三步开始使用')}</h2>
|
||||||
<p>{t('登录在浏览器完成,客户端不保存你的密码')}</p>
|
<p>{t('登录在浏览器完成,客户端不保存你的密码')}</p>
|
||||||
|
|||||||
@@ -4,14 +4,15 @@
|
|||||||
--wd-muted: var(--text-secondary);
|
--wd-muted: var(--text-secondary);
|
||||||
--wd-line: var(--border-subtle);
|
--wd-line: var(--border-subtle);
|
||||||
--wd-card: var(--surface-card);
|
--wd-card: var(--surface-card);
|
||||||
--wd-accent: var(--brand-primary);
|
--wd-accent: var(--brand-accent);
|
||||||
--wd-accent-deep: var(--brand-primary);
|
--wd-accent-deep: var(--brand-selection-text);
|
||||||
--wd-tint: color-mix(in srgb, var(--brand-primary) 8%, transparent);
|
--wd-tint: var(--brand-selection-bg);
|
||||||
--wd-tint-strong: color-mix(in srgb, var(--brand-primary) 14%, transparent);
|
--wd-tint-strong: color-mix(in srgb, var(--wd-accent) 16%, var(--wd-card));
|
||||||
--wd-accent-line: color-mix(in srgb, var(--brand-primary) 28%, transparent);
|
--wd-accent-line: color-mix(in srgb, var(--wd-accent) 26%, var(--wd-line));
|
||||||
--wd-danger: var(--ui-color-danger);
|
--wd-danger: var(--ui-color-danger);
|
||||||
--wd-danger-tint: color-mix(in srgb, var(--ui-color-danger) 8%, transparent);
|
--wd-danger-tint: color-mix(in srgb, var(--ui-color-danger) 8%, transparent);
|
||||||
--wd-focus: var(--brand-primary);
|
--wd-focus: var(--brand-accent);
|
||||||
|
--wd-meta: color-mix(in srgb, var(--wd-muted) 72%, var(--wd-ink));
|
||||||
position: relative;
|
position: relative;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
color: var(--wd-ink);
|
color: var(--wd-ink);
|
||||||
@@ -26,22 +27,23 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.weyai-download__inner {
|
.weyai-download__inner {
|
||||||
|
container-type: inline-size;
|
||||||
position: relative;
|
position: relative;
|
||||||
max-width: 1120px;
|
max-width: clamp(1440px, 82vw, 1920px);
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 24px 30px;
|
padding: clamp(16px, 2.4vw, 48px) clamp(16px, 3vw, 48px);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 18px;
|
gap: clamp(20px, 2vw, 32px);
|
||||||
}
|
}
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.weyai-download__inner {
|
.weyai-download__inner {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* 嵌入用户中心:跟随内容区宽度,不再居中收窄;内边距与面包屑对齐 .uc-page 统一边距 */
|
|
||||||
.weyai-download--embedded .weyai-download__inner {
|
.weyai-download--embedded .weyai-download__inner {
|
||||||
max-width: none;
|
max-width: none;
|
||||||
|
gap: 18px;
|
||||||
padding: var(--uc-page-pad-top, 30px) var(--uc-page-pad-x, 36px)
|
padding: var(--uc-page-pad-top, 30px) var(--uc-page-pad-x, 36px)
|
||||||
var(--uc-page-pad-bottom, 36px);
|
var(--uc-page-pad-bottom, 36px);
|
||||||
}
|
}
|
||||||
@@ -53,21 +55,54 @@
|
|||||||
scroll-margin-top: 16px;
|
scroll-margin-top: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ───── hero ───── */
|
.wd-intro {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
|
.weyai-download--standalone .wd-intro {
|
||||||
|
display: grid;
|
||||||
|
align-items: stretch;
|
||||||
|
gap: clamp(16px, 3cqw, 40px);
|
||||||
|
padding: clamp(16px, 3cqw, 40px);
|
||||||
|
border: 1px solid var(--wd-line);
|
||||||
|
border-radius: 16px;
|
||||||
|
background: var(--wd-card);
|
||||||
|
}
|
||||||
|
@container (min-width: 880px) {
|
||||||
|
.weyai-download--standalone .wd-intro {
|
||||||
|
grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
.wd-hero {
|
.wd-hero {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
.wd-hero > .wd-eyebrow {
|
.weyai-download--standalone .wd-hero > .wd-eyebrow {
|
||||||
margin-bottom: 8px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
.wd-hero .uc-page-header {
|
.wd-hero .uc-page-header {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
.weyai-download--standalone .wd-hero .uc-page-header-main {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 16px;
|
||||||
|
}
|
||||||
|
.weyai-download--standalone .wd-hero .uc-page-title {
|
||||||
|
font-size: clamp(28px, 3.3cqw, 46px);
|
||||||
|
line-height: 1.17;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
}
|
||||||
|
.weyai-download--standalone .wd-hero .uc-page-subtitle {
|
||||||
|
margin-top: 8px;
|
||||||
|
font-size: 15px;
|
||||||
|
line-height: 1.55;
|
||||||
|
color: var(--wd-meta);
|
||||||
|
}
|
||||||
.wd-eyebrow {
|
.wd-eyebrow {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
color: var(--wd-accent);
|
color: var(--wd-accent-deep);
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
letter-spacing: 0.08em;
|
letter-spacing: 0.08em;
|
||||||
@@ -96,7 +131,7 @@
|
|||||||
.wd-chip--muted {
|
.wd-chip--muted {
|
||||||
border-color: var(--wd-line);
|
border-color: var(--wd-line);
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: var(--wd-muted);
|
color: var(--wd-meta);
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
.wd-hero-actions {
|
.wd-hero-actions {
|
||||||
@@ -104,6 +139,14 @@
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
.wd-hero-actions .ant-btn,
|
||||||
|
.wd-reco__actions .ant-btn {
|
||||||
|
height: auto;
|
||||||
|
min-height: 36px;
|
||||||
|
max-width: 100%;
|
||||||
|
white-space: normal;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
/* ───── 卡片基础 ───── */
|
/* ───── 卡片基础 ───── */
|
||||||
.wd-card {
|
.wd-card {
|
||||||
@@ -120,6 +163,16 @@
|
|||||||
border-color: var(--wd-accent-line);
|
border-color: var(--wd-accent-line);
|
||||||
background: var(--wd-card);
|
background: var(--wd-card);
|
||||||
}
|
}
|
||||||
|
.weyai-download--standalone .wd-reco {
|
||||||
|
align-self: stretch;
|
||||||
|
display: grid;
|
||||||
|
align-content: center;
|
||||||
|
padding: clamp(16px, 2.3cqw, 36px);
|
||||||
|
background: color-mix(in srgb, var(--wd-tint) 66%, var(--wd-card));
|
||||||
|
}
|
||||||
|
.weyai-download--standalone .wd-reco::before {
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
.wd-reco::before {
|
.wd-reco::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -132,13 +185,19 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
}
|
}
|
||||||
@media (min-width: 768px) {
|
@container (min-width: 680px) {
|
||||||
.wd-reco__row {
|
.wd-reco__row {
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@container (min-width: 880px) {
|
||||||
|
.weyai-download--standalone .wd-reco__row {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
}
|
||||||
.wd-reco__main {
|
.wd-reco__main {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
@@ -175,19 +234,19 @@
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 4px 12px;
|
gap: 4px 12px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: var(--wd-muted);
|
color: var(--wd-meta);
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
}
|
}
|
||||||
.wd-reco__meta code {
|
.wd-reco__meta code {
|
||||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: var(--wd-muted);
|
color: inherit;
|
||||||
word-break: break-all;
|
overflow-wrap: anywhere;
|
||||||
}
|
}
|
||||||
.wd-reco__hint {
|
.wd-reco__hint {
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: var(--wd-muted);
|
color: var(--wd-meta);
|
||||||
}
|
}
|
||||||
.wd-reco__actions {
|
.wd-reco__actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -195,13 +254,21 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
@media (min-width: 768px) {
|
@container (min-width: 680px) {
|
||||||
.wd-reco__actions {
|
.weyai-download--embedded .wd-reco__actions {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.weyai-download--standalone .wd-reco__actions .ant-btn {
|
||||||
|
min-height: 44px;
|
||||||
|
}
|
||||||
|
@container (max-width: 480px) {
|
||||||
|
.weyai-download--standalone .wd-reco__actions {
|
||||||
|
display: grid;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* ───── 特性条 ───── */
|
/* ───── 特性条 ───── */
|
||||||
.wd-features {
|
.wd-features {
|
||||||
@@ -209,25 +276,15 @@
|
|||||||
grid-template-columns: minmax(0, 1fr);
|
grid-template-columns: minmax(0, 1fr);
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
}
|
}
|
||||||
@media (min-width: 640px) {
|
@container (min-width: 510px) {
|
||||||
.wd-features {
|
.wd-features {
|
||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (min-width: 1024px) {
|
@container (min-width: 940px) {
|
||||||
.wd-features {
|
.wd-features {
|
||||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||||
}
|
}
|
||||||
/* 嵌入用户中心时内容区少了 240px 侧栏,1024–1279 之间四列每列不足 200px,
|
|
||||||
英文描述会折五六行;这一档保持两列,到 1280 再放四列 */
|
|
||||||
.weyai-download--embedded .wd-features {
|
|
||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media (min-width: 1280px) {
|
|
||||||
.weyai-download--embedded .wd-features {
|
|
||||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.wd-feature {
|
.wd-feature {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -260,6 +317,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ───── 分区标题 ───── */
|
/* ───── 分区标题 ───── */
|
||||||
|
.wd-section {
|
||||||
|
display: grid;
|
||||||
|
min-width: 0;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
.wd-section-head {
|
.wd-section-head {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@@ -269,7 +331,7 @@
|
|||||||
}
|
}
|
||||||
.wd-section-head h2 {
|
.wd-section-head h2 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 15px;
|
font-size: 18px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
letter-spacing: -0.01em;
|
letter-spacing: -0.01em;
|
||||||
color: var(--wd-ink);
|
color: var(--wd-ink);
|
||||||
@@ -277,77 +339,107 @@
|
|||||||
.wd-section-head p {
|
.wd-section-head p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: var(--wd-muted);
|
color: var(--wd-meta);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ───── 全部安装包 ───── */
|
/* ───── 全部安装包 ───── */
|
||||||
.wd-platforms {
|
.wd-platforms {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: minmax(0, 1fr);
|
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
}
|
}
|
||||||
@media (min-width: 768px) {
|
|
||||||
.wd-platforms {
|
|
||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media (min-width: 1024px) {
|
|
||||||
.wd-platforms {
|
|
||||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.wd-platform {
|
.wd-platform {
|
||||||
overflow: hidden;
|
display: grid;
|
||||||
|
min-width: 0;
|
||||||
|
gap: 12px;
|
||||||
|
padding: 12px;
|
||||||
}
|
}
|
||||||
/* 手机端卡片底部的用途说明 */
|
|
||||||
.wd-platform__note {
|
.wd-platform__note {
|
||||||
padding: 10px 16px 12px;
|
padding-inline: 4px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: var(--wd-muted);
|
color: var(--wd-meta);
|
||||||
}
|
}
|
||||||
.wd-platform__head {
|
.wd-platform__head {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
padding: 12px 16px;
|
padding: 4px;
|
||||||
border-bottom: 1px solid var(--wd-line);
|
|
||||||
}
|
}
|
||||||
.wd-platform__name {
|
.wd-platform__name {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
font-size: 14px;
|
margin: 0;
|
||||||
font-weight: 600;
|
font-size: 15px;
|
||||||
|
font-weight: 650;
|
||||||
color: var(--wd-ink);
|
color: var(--wd-ink);
|
||||||
}
|
}
|
||||||
.wd-platform__name svg {
|
.wd-platform__name svg {
|
||||||
|
flex: none;
|
||||||
color: var(--wd-accent-deep);
|
color: var(--wd-accent-deep);
|
||||||
}
|
}
|
||||||
.wd-platform__count {
|
.wd-platform__count {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: var(--wd-muted);
|
color: var(--wd-meta);
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
}
|
}
|
||||||
|
.wd-platform__files {
|
||||||
|
display: grid;
|
||||||
|
min-width: 0;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
@container (min-width: 620px) {
|
||||||
|
.wd-platform__files:has(> :nth-child(2)) {
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@container (min-width: 900px) {
|
||||||
|
.wd-platform {
|
||||||
|
grid-template-columns: 148px minmax(0, 1fr);
|
||||||
|
gap: 16px;
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
.wd-platform__head {
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 3px;
|
||||||
|
padding-inline: 8px;
|
||||||
|
}
|
||||||
|
.wd-platform__count {
|
||||||
|
padding-inline-start: 26px;
|
||||||
|
}
|
||||||
|
.wd-platform__note {
|
||||||
|
grid-column: 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@container (min-width: 1230px) {
|
||||||
|
.wd-platform__files:has(> :nth-child(4)) {
|
||||||
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||||
|
}
|
||||||
|
}
|
||||||
.wd-file {
|
.wd-file {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
padding: 12px 16px;
|
min-width: 0;
|
||||||
border-bottom: 1px solid var(--wd-line);
|
padding: 10px 12px;
|
||||||
|
border: 1px solid var(--wd-line);
|
||||||
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
.wd-file > .ant-btn {
|
.wd-file > .ant-btn {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
min-height: 40px;
|
||||||
|
max-width: 50%;
|
||||||
}
|
}
|
||||||
.wd-file:last-child {
|
.wd-file:hover,
|
||||||
border-bottom: 0;
|
.wd-file:focus-within {
|
||||||
}
|
|
||||||
.wd-file:hover {
|
|
||||||
background: var(--wd-tint);
|
background: var(--wd-tint);
|
||||||
}
|
}
|
||||||
.wd-file--reco {
|
.wd-file--reco {
|
||||||
box-shadow: inset 3px 0 0 var(--wd-accent);
|
border-color: var(--wd-accent-line);
|
||||||
|
background: color-mix(in srgb, var(--wd-tint) 46%, var(--wd-card));
|
||||||
}
|
}
|
||||||
.wd-file__main {
|
.wd-file__main {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
@@ -360,25 +452,29 @@
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: var(--wd-ink);
|
color: var(--wd-ink);
|
||||||
|
overflow-wrap: anywhere;
|
||||||
}
|
}
|
||||||
.wd-file__title .ant-tag {
|
.wd-file__title .ant-tag {
|
||||||
margin-inline-end: 0;
|
margin-inline-end: 0;
|
||||||
}
|
}
|
||||||
.wd-recommended-tag.ant-tag {
|
.wd-recommended-tag.ant-tag {
|
||||||
color: var(--wd-accent);
|
color: var(--wd-accent-deep);
|
||||||
background: var(--wd-tint);
|
background: var(--wd-tint);
|
||||||
border-color: var(--wd-accent-line);
|
border-color: var(--wd-accent-line);
|
||||||
}
|
}
|
||||||
.wd-file__meta {
|
.wd-file__meta {
|
||||||
display: block;
|
display: flex;
|
||||||
margin-top: 2px;
|
flex-wrap: wrap;
|
||||||
|
gap: 2px 8px;
|
||||||
|
margin-top: 4px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: var(--wd-muted);
|
color: var(--wd-meta);
|
||||||
overflow: hidden;
|
overflow-wrap: anywhere;
|
||||||
text-overflow: ellipsis;
|
|
||||||
white-space: nowrap;
|
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
}
|
}
|
||||||
|
.wd-file__name {
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* ───── 步骤 ───── */
|
/* ───── 步骤 ───── */
|
||||||
.wd-steps {
|
.wd-steps {
|
||||||
@@ -386,7 +482,7 @@
|
|||||||
grid-template-columns: minmax(0, 1fr);
|
grid-template-columns: minmax(0, 1fr);
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
}
|
}
|
||||||
@media (min-width: 768px) {
|
@container (min-width: 660px) {
|
||||||
.wd-steps {
|
.wd-steps {
|
||||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||||
}
|
}
|
||||||
@@ -406,7 +502,7 @@
|
|||||||
height: 28px;
|
height: 28px;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
background: var(--wd-tint-strong);
|
background: var(--wd-tint-strong);
|
||||||
color: var(--wd-accent);
|
color: var(--wd-accent-deep);
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
@@ -484,7 +580,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.weyai-download button:focus-visible,
|
.weyai-download button:focus-visible,
|
||||||
.weyai-download a:focus-visible {
|
.weyai-download a:focus-visible,
|
||||||
|
.weyai-download #weyai-download-all-title:focus-visible {
|
||||||
outline: 2px solid var(--wd-focus);
|
outline: 2px solid var(--wd-focus);
|
||||||
outline-offset: 2px;
|
outline-offset: 2px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user