Compare commits
3 Commits
8095b2391e
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d0535c7208 | ||
|
|
c92ad8b096 | ||
|
|
e809de892d |
@@ -2515,7 +2515,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 设置视图 -->
|
<!-- 设置视图 -->
|
||||||
<div v-if="isLoggedIn && currentView === 'settings'" class="main-container">
|
<div v-if="isLoggedIn && currentView === 'settings'" class="main-container settings-main-container">
|
||||||
<div class="card settings-page-card">
|
<div class="card settings-page-card">
|
||||||
<div class="settings-page-head">
|
<div class="settings-page-head">
|
||||||
<h2 class="settings-page-title">
|
<h2 class="settings-page-title">
|
||||||
@@ -3125,7 +3125,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 分享视图 -->
|
<!-- 分享视图 -->
|
||||||
<div v-if="isLoggedIn && currentView === 'shares'" class="main-container">
|
<div v-if="isLoggedIn && currentView === 'shares'" class="main-container shares-main-container">
|
||||||
<div class="card shares-page-card">
|
<div class="card shares-page-card">
|
||||||
<header class="workspace-page-header shares-page-head">
|
<header class="workspace-page-header shares-page-head">
|
||||||
<div class="workspace-page-heading">
|
<div class="workspace-page-heading">
|
||||||
@@ -3134,21 +3134,21 @@
|
|||||||
<p>集中查看分享状态、访问数据和文件直链。</p>
|
<p>集中查看分享状态、访问数据和文件直链。</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="shares-page-actions">
|
<div class="shares-page-actions">
|
||||||
<button class="btn btn-secondary" @click="refreshShareResources">
|
<button type="button" class="btn btn-secondary share-refresh-btn" @click="refreshShareResources" aria-label="刷新分享资源">
|
||||||
<i class="fas fa-sync-alt"></i> 刷新
|
<i class="fas fa-sync-alt"></i><span class="share-action-label">刷新</span>
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-primary" @click="switchView('files')">
|
<button type="button" class="btn btn-primary share-create-btn" @click="switchView('files')" aria-label="创建分享" title="创建分享">
|
||||||
<i class="fas fa-plus"></i> 创建分享
|
<i class="fas fa-plus"></i><span class="share-action-label">创建分享</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<nav class="share-resource-tabs" aria-label="分享资源分类">
|
<nav class="share-resource-tabs" aria-label="分享资源分类">
|
||||||
<button :class="{ active: shareResourceTab === 'shares' }" @click="shareResourceTab = 'shares'">
|
<button type="button" :class="{ active: shareResourceTab === 'shares' }" @click="shareResourceTab = 'shares'">
|
||||||
<i class="fas fa-share-alt"></i> 分享链接
|
<i class="fas fa-share-alt"></i> 分享链接
|
||||||
<span>{{ shares.length }}</span>
|
<span>{{ shares.length }}</span>
|
||||||
</button>
|
</button>
|
||||||
<button :class="{ active: shareResourceTab === 'directLinks' }" @click="shareResourceTab = 'directLinks'">
|
<button type="button" :class="{ active: shareResourceTab === 'directLinks' }" @click="shareResourceTab = 'directLinks'">
|
||||||
<i class="fas fa-link"></i> 文件直链
|
<i class="fas fa-link"></i> 文件直链
|
||||||
<span>{{ directLinks.length }}</span>
|
<span>{{ directLinks.length }}</span>
|
||||||
</button>
|
</button>
|
||||||
@@ -3161,12 +3161,12 @@
|
|||||||
<span><i class="fas fa-shield-alt"></i> 状态 <strong>运行正常</strong></span>
|
<span><i class="fas fa-shield-alt"></i> 状态 <strong>运行正常</strong></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="share-toolbar shares-toolbar">
|
<div class="share-toolbar shares-toolbar" :class="{ 'share-toolbar-direct': shareResourceTab === 'directLinks' }">
|
||||||
<div class="share-search-field">
|
<div class="share-search-field">
|
||||||
<i class="fas fa-search"></i>
|
<i class="fas fa-search"></i>
|
||||||
<input type="text" v-model="shareFilters.keyword" :placeholder="shareResourceTab === 'shares' ? '搜索文件名、链接或分享码' : '搜索文件名或直链地址'">
|
<input type="text" v-model="shareFilters.keyword" :placeholder="shareResourceTab === 'shares' ? '搜索文件名、链接或分享码' : '搜索文件名或直链地址'">
|
||||||
</div>
|
</div>
|
||||||
<template v-if="shareResourceTab === 'shares'">
|
<div v-if="shareResourceTab === 'shares'" class="share-filter-controls">
|
||||||
<select v-model="shareFilters.type" aria-label="分享类型">
|
<select v-model="shareFilters.type" aria-label="分享类型">
|
||||||
<option value="all">全部类型</option>
|
<option value="all">全部类型</option>
|
||||||
<option value="file">文件</option>
|
<option value="file">文件</option>
|
||||||
@@ -3188,7 +3188,7 @@
|
|||||||
<option value="downloads_desc">下载最多</option>
|
<option value="downloads_desc">下载最多</option>
|
||||||
<option value="expire_asc">最早到期</option>
|
<option value="expire_asc">最早到期</option>
|
||||||
</select>
|
</select>
|
||||||
</template>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="shareResourceTab === 'shares'" class="share-resource-panel">
|
<div v-if="shareResourceTab === 'shares'" class="share-resource-panel">
|
||||||
@@ -3300,7 +3300,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 管理员视图 -->
|
<!-- 管理员视图 -->
|
||||||
<div v-if="isLoggedIn && currentView === 'admin' && user && user.is_admin" class="main-container">
|
<div v-if="isLoggedIn && currentView === 'admin' && user && user.is_admin" class="main-container admin-main-container">
|
||||||
<!-- 管理员标签页导航 -->
|
<!-- 管理员标签页导航 -->
|
||||||
<div class="card admin-tabs-card" style="margin-bottom: 20px; padding: 0;">
|
<div class="card admin-tabs-card" style="margin-bottom: 20px; padding: 0;">
|
||||||
<div class="admin-tabs-nav">
|
<div class="admin-tabs-nav">
|
||||||
@@ -3320,9 +3320,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- ========== 概览标签页 ========== -->
|
<!-- ========== 概览标签页 ========== -->
|
||||||
<div v-show="adminTab === 'overview'">
|
<div v-show="adminTab === 'overview'" class="admin-overview-page">
|
||||||
<!-- 调试模式开关 -->
|
<!-- 调试模式开关 -->
|
||||||
<div class="card" style="margin-bottom: 30px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white;">
|
<div class="card admin-debug-card" style="margin-bottom: 30px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white;">
|
||||||
<div class="admin-debug-row" style="display: flex; align-items: center; justify-content: space-between;">
|
<div class="admin-debug-row" style="display: flex; align-items: center; justify-content: space-between;">
|
||||||
<div>
|
<div>
|
||||||
<h3 style="margin-bottom: 10px; color: white;">
|
<h3 style="margin-bottom: 10px; color: white;">
|
||||||
@@ -3340,7 +3340,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 服务器存储统计 -->
|
<!-- 服务器存储统计 -->
|
||||||
<div class="card" style="margin-bottom: 30px;">
|
<div class="card admin-storage-card" style="margin-bottom: 30px;">
|
||||||
<h3 style="margin-bottom: 20px;">
|
<h3 style="margin-bottom: 20px;">
|
||||||
<i class="fas fa-hdd"></i> 服务器存储统计
|
<i class="fas fa-hdd"></i> 服务器存储统计
|
||||||
</h3>
|
</h3>
|
||||||
@@ -4035,12 +4035,23 @@
|
|||||||
</div><!-- 监控标签页结束 -->
|
</div><!-- 监控标签页结束 -->
|
||||||
|
|
||||||
<!-- ========== 用户标签页 ========== -->
|
<!-- ========== 用户标签页 ========== -->
|
||||||
<div v-show="adminTab === 'users'">
|
<div v-show="adminTab === 'users'" class="admin-users-page">
|
||||||
<div class="card">
|
<div class="card admin-users-card">
|
||||||
<div class="admin-users-header">
|
<div class="admin-users-header">
|
||||||
<h3 style="margin: 0;">用户管理</h3>
|
<h3 style="margin: 0;">用户管理</h3>
|
||||||
<button class="btn btn-secondary" @click="loadUsers" :disabled="adminUsersLoading" style="min-width: 92px;">
|
<button
|
||||||
<i :class="adminUsersLoading ? 'fas fa-spinner fa-spin' : 'fas fa-rotate'"></i> 刷新
|
type="button"
|
||||||
|
class="mobile-admin-users-reset-btn"
|
||||||
|
:disabled="activeAdminUserFilterCount === 0"
|
||||||
|
@click="resetAdminUserFilters"
|
||||||
|
aria-label="重置用户筛选"
|
||||||
|
title="重置筛选"
|
||||||
|
>
|
||||||
|
<i class="fas fa-filter-circle-xmark"></i>
|
||||||
|
</button>
|
||||||
|
<button type="button" class="btn btn-secondary admin-users-refresh-btn" @click="loadUsers" :disabled="adminUsersLoading" style="min-width: 92px;" aria-label="刷新用户列表">
|
||||||
|
<i :class="adminUsersLoading ? 'fas fa-spinner fa-spin' : 'fas fa-rotate'"></i>
|
||||||
|
<span>刷新</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -4051,16 +4062,16 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="admin-users-filter">
|
<div class="admin-users-filter">
|
||||||
<label>角色</label>
|
<label>角色</label>
|
||||||
<select v-model="adminUserFilters.role" @change="handleAdminUsersFilterChange">
|
<select v-model="adminUserFilters.role" @change="handleAdminUsersFilterChange" aria-label="用户角色">
|
||||||
<option value="all">全部</option>
|
<option value="all">全部角色</option>
|
||||||
<option value="admin">管理员</option>
|
<option value="admin">管理员</option>
|
||||||
<option value="user">普通用户</option>
|
<option value="user">普通用户</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="admin-users-filter">
|
<div class="admin-users-filter">
|
||||||
<label>状态</label>
|
<label>状态</label>
|
||||||
<select v-model="adminUserFilters.status" @change="handleAdminUsersFilterChange">
|
<select v-model="adminUserFilters.status" @change="handleAdminUsersFilterChange" aria-label="用户状态">
|
||||||
<option value="all">全部</option>
|
<option value="all">全部状态</option>
|
||||||
<option value="active">正常</option>
|
<option value="active">正常</option>
|
||||||
<option value="banned">已封禁</option>
|
<option value="banned">已封禁</option>
|
||||||
<option value="unverified">未激活</option>
|
<option value="unverified">未激活</option>
|
||||||
@@ -4069,8 +4080,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="admin-users-filter">
|
<div class="admin-users-filter">
|
||||||
<label>存储</label>
|
<label>存储</label>
|
||||||
<select v-model="adminUserFilters.storage" @change="handleAdminUsersFilterChange">
|
<select v-model="adminUserFilters.storage" @change="handleAdminUsersFilterChange" aria-label="用户存储类型">
|
||||||
<option value="all">全部</option>
|
<option value="all">全部存储</option>
|
||||||
<option value="local">当前本地</option>
|
<option value="local">当前本地</option>
|
||||||
<option value="oss">当前OSS</option>
|
<option value="oss">当前OSS</option>
|
||||||
<option value="local_only">仅本地</option>
|
<option value="local_only">仅本地</option>
|
||||||
@@ -4080,7 +4091,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="admin-users-filter">
|
<div class="admin-users-filter">
|
||||||
<label>排序</label>
|
<label>排序</label>
|
||||||
<select v-model="adminUserFilters.sort" @change="handleAdminUsersFilterChange">
|
<select v-model="adminUserFilters.sort" @change="handleAdminUsersFilterChange" aria-label="用户排序方式">
|
||||||
<option value="created_desc">注册时间(新到旧)</option>
|
<option value="created_desc">注册时间(新到旧)</option>
|
||||||
<option value="created_asc">注册时间(旧到新)</option>
|
<option value="created_asc">注册时间(旧到新)</option>
|
||||||
<option value="username_asc">用户名(A-Z)</option>
|
<option value="username_asc">用户名(A-Z)</option>
|
||||||
@@ -4091,10 +4102,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="admin-users-filter admin-users-filter-page-size">
|
<div class="admin-users-filter admin-users-filter-page-size">
|
||||||
<label>每页</label>
|
<label>每页</label>
|
||||||
<select v-model.number="adminUsersPageSize" @change="handleAdminUsersPageSizeChange">
|
<select v-model.number="adminUsersPageSize" @change="handleAdminUsersPageSizeChange" aria-label="每页用户数量">
|
||||||
<option :value="20">20</option>
|
<option :value="20">20 条</option>
|
||||||
<option :value="50">50</option>
|
<option :value="50">50 条</option>
|
||||||
<option :value="100">100</option>
|
<option :value="100">100 条</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="admin-users-filter admin-users-filter-reset">
|
<div class="admin-users-filter admin-users-filter-reset">
|
||||||
|
|||||||
@@ -154,7 +154,6 @@ createApp({
|
|||||||
status: 'all', // all/active/expiring/expired/protected/public
|
status: 'all', // all/active/expiring/expired/protected/public
|
||||||
sort: 'created_desc' // created_desc/created_asc/views_desc/downloads_desc/expire_asc
|
sort: 'created_desc' // created_desc/created_asc/views_desc/downloads_desc/expire_asc
|
||||||
},
|
},
|
||||||
|
|
||||||
// 文件重命名
|
// 文件重命名
|
||||||
showRenameModal: false,
|
showRenameModal: false,
|
||||||
renameForm: {
|
renameForm: {
|
||||||
@@ -729,6 +728,17 @@ createApp({
|
|||||||
return list;
|
return list;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
activeAdminUserFilterCount() {
|
||||||
|
let count = 0;
|
||||||
|
if (String(this.adminUserFilters.keyword || '').trim()) count += 1;
|
||||||
|
if (this.adminUserFilters.role !== 'all') count += 1;
|
||||||
|
if (this.adminUserFilters.status !== 'all') count += 1;
|
||||||
|
if (this.adminUserFilters.storage !== 'all') count += 1;
|
||||||
|
if (this.adminUserFilters.sort !== 'created_desc') count += 1;
|
||||||
|
if (Number(this.adminUsersPageSize) !== 20) count += 1;
|
||||||
|
return count;
|
||||||
|
},
|
||||||
|
|
||||||
adminUsersFilteredCount() {
|
adminUsersFilteredCount() {
|
||||||
return Math.max(0, Number(this.adminUsersTotalCount) || 0);
|
return Math.max(0, Number(this.adminUsersTotalCount) || 0);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
import { copyFileSync, existsSync, mkdirSync, readdirSync } from 'node:fs';
|
import { createHash } from 'node:crypto';
|
||||||
|
import {
|
||||||
|
copyFileSync,
|
||||||
|
existsSync,
|
||||||
|
mkdirSync,
|
||||||
|
readFileSync,
|
||||||
|
readdirSync,
|
||||||
|
writeFileSync
|
||||||
|
} from 'node:fs';
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
|
|
||||||
@@ -32,3 +40,26 @@ for (const entry of ['libs', 'favicon.ico']) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Vite hoists linked stylesheets into <head>, ahead of legacy inline styles in
|
||||||
|
// app.html. Re-emit the workspace layer after those styles so production and
|
||||||
|
// development use the same cascade order.
|
||||||
|
const workspaceSourcePath = path.join(frontendRoot, 'workspace.css');
|
||||||
|
const workspaceContents = readFileSync(workspaceSourcePath);
|
||||||
|
const workspaceHash = createHash('sha256').update(workspaceContents).digest('hex').slice(0, 12);
|
||||||
|
const workspaceFileName = `workspace-${workspaceHash}.css`;
|
||||||
|
copyFileSync(workspaceSourcePath, path.join(outputDirectory, workspaceFileName));
|
||||||
|
|
||||||
|
const builtAppPath = path.join(outputDirectory, 'app.html');
|
||||||
|
const builtAppHtml = readFileSync(builtAppPath, 'utf8');
|
||||||
|
const runtimeStylesheet = ` <link rel="stylesheet" href="/${workspaceFileName}" data-workspace-runtime>\n`;
|
||||||
|
const nextBuiltAppHtml = builtAppHtml.includes('data-workspace-runtime')
|
||||||
|
? builtAppHtml.replace(/\s*<link[^>]+data-workspace-runtime[^>]*>\s*/u, `\n${runtimeStylesheet}`)
|
||||||
|
: builtAppHtml.replace('</body>', `${runtimeStylesheet}</body>`);
|
||||||
|
|
||||||
|
if (!nextBuiltAppHtml.includes('data-workspace-runtime')) {
|
||||||
|
throw new Error('Unable to inject the runtime workspace stylesheet into dist/app.html');
|
||||||
|
}
|
||||||
|
|
||||||
|
writeFileSync(builtAppPath, nextBuiltAppHtml, 'utf8');
|
||||||
|
console.log(`Injected runtime workspace stylesheet: ${workspaceFileName}`);
|
||||||
|
|||||||
@@ -32,4 +32,21 @@ for (const fileName of ['app.html', 'share.html']) {
|
|||||||
assert.strictEqual(/vue\.global(?:\.prod)?\.js|axios\.min\.js/.test(html), false, `${fileName} still loads global Vue/Axios`);
|
assert.strictEqual(/vue\.global(?:\.prod)?\.js|axios\.min\.js/.test(html), false, `${fileName} still loads global Vue/Axios`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const builtAppHtml = readFileSync(path.join(outputDirectory, 'app.html'), 'utf8');
|
||||||
|
const runtimeWorkspaceMatch = builtAppHtml.match(
|
||||||
|
/<link rel="stylesheet" href="\/(workspace-[a-f0-9]{12}\.css)" data-workspace-runtime>/
|
||||||
|
);
|
||||||
|
assert.ok(runtimeWorkspaceMatch, 'app.html is missing the hashed runtime workspace stylesheet');
|
||||||
|
|
||||||
|
const runtimeWorkspacePath = path.join(outputDirectory, runtimeWorkspaceMatch[1]);
|
||||||
|
assert.ok(existsSync(runtimeWorkspacePath), 'runtime workspace stylesheet is missing');
|
||||||
|
assert.ok(
|
||||||
|
builtAppHtml.indexOf(runtimeWorkspaceMatch[0]) > builtAppHtml.lastIndexOf('</style>'),
|
||||||
|
'runtime workspace stylesheet must load after every legacy inline style'
|
||||||
|
);
|
||||||
|
|
||||||
|
const runtimeWorkspaceCss = readFileSync(runtimeWorkspacePath, 'utf8');
|
||||||
|
assert.ok(runtimeWorkspaceCss.includes('.mobile-file-create-trigger'), 'runtime workspace stylesheet is incomplete');
|
||||||
|
assert.ok(runtimeWorkspaceCss.includes('@media (max-width: 900px)'), 'runtime workspace mobile breakpoint is missing');
|
||||||
|
|
||||||
console.log(`Verified ${htmlFiles.length} HTML entries and their emitted assets.`);
|
console.log(`Verified ${htmlFiles.length} HTML entries and their emitted assets.`);
|
||||||
|
|||||||
@@ -3401,3 +3401,847 @@ body.enterprise-netdisk .mobile-file-create-trigger {
|
|||||||
padding-inline: 2px;
|
padding-inline: 2px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Content-first mobile layout for shares, settings and administration. */
|
||||||
|
body.enterprise-netdisk .share-filter-controls {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .mobile-admin-users-reset-btn {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 900px) {
|
||||||
|
body.enterprise-netdisk .shares-main-container,
|
||||||
|
body.enterprise-netdisk .settings-main-container {
|
||||||
|
padding: 0 0 calc(66px + env(safe-area-inset-bottom));
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-card,
|
||||||
|
body.enterprise-netdisk .settings-page-card {
|
||||||
|
min-height: calc(100vh - 66px);
|
||||||
|
min-height: calc(100dvh - 66px - env(safe-area-inset-bottom));
|
||||||
|
overflow: visible;
|
||||||
|
border: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Share links should reach the viewport before secondary controls. */
|
||||||
|
body.enterprise-netdisk .shares-page-head {
|
||||||
|
min-height: 62px;
|
||||||
|
padding: 10px 14px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
border-bottom: 1px solid #edf1f6;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-head .workspace-page-heading {
|
||||||
|
min-width: 0;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-head .workspace-kicker,
|
||||||
|
body.enterprise-netdisk .shares-page-head .workspace-page-heading p {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-head .workspace-page-heading h1 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 21px;
|
||||||
|
line-height: 1.2;
|
||||||
|
letter-spacing: -0.02em;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-actions {
|
||||||
|
width: auto;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
display: flex;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-actions .btn {
|
||||||
|
min-width: 0;
|
||||||
|
min-height: 40px;
|
||||||
|
padding: 0 11px;
|
||||||
|
gap: 6px;
|
||||||
|
border-radius: 10px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-actions .share-refresh-btn {
|
||||||
|
width: 40px;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-actions .share-create-btn {
|
||||||
|
width: 40px;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-actions .share-action-label {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-resource-tabs {
|
||||||
|
min-height: 46px;
|
||||||
|
padding: 0 14px;
|
||||||
|
align-items: flex-end;
|
||||||
|
gap: 22px;
|
||||||
|
overflow-x: auto;
|
||||||
|
scrollbar-width: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-resource-tabs::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-resource-tabs button {
|
||||||
|
min-height: 45px;
|
||||||
|
padding: 0;
|
||||||
|
gap: 6px;
|
||||||
|
font-size: 12px;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-resource-tabs button > span {
|
||||||
|
min-width: 19px;
|
||||||
|
height: 19px;
|
||||||
|
padding: 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-resource-card {
|
||||||
|
margin: 0;
|
||||||
|
overflow: visible;
|
||||||
|
border: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-inline-stats {
|
||||||
|
min-height: 36px;
|
||||||
|
padding: 0 14px;
|
||||||
|
gap: 16px;
|
||||||
|
overflow-x: auto;
|
||||||
|
border-bottom: 1px solid #edf1f6;
|
||||||
|
background: #fbfcfe;
|
||||||
|
font-size: 10px;
|
||||||
|
white-space: nowrap;
|
||||||
|
scrollbar-width: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-inline-stats::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-inline-stats > span {
|
||||||
|
gap: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-inline-stats > span:last-child {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-resource-card .share-toolbar {
|
||||||
|
margin: 9px 14px 8px;
|
||||||
|
padding: 0;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr);
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
border: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-resource-card .share-search-field {
|
||||||
|
min-width: 0;
|
||||||
|
min-height: 42px;
|
||||||
|
padding: 0 11px;
|
||||||
|
border: 1px solid #dce4ef;
|
||||||
|
border-radius: 10px;
|
||||||
|
background: #f7f9fc;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-resource-card .share-search-field input,
|
||||||
|
body.enterprise-netdisk .share-resource-card .share-search-field input:focus {
|
||||||
|
min-height: 38px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-filter-controls {
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-resource-card .share-filter-controls select {
|
||||||
|
width: 100%;
|
||||||
|
min-width: 0;
|
||||||
|
min-height: 34px;
|
||||||
|
padding: 0 7px;
|
||||||
|
border: 1px solid #dce4ef;
|
||||||
|
border-radius: 9px;
|
||||||
|
background-color: #f7f9fc;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-resource-panel {
|
||||||
|
min-height: 0;
|
||||||
|
overflow: visible;
|
||||||
|
border-top: 1px solid #edf1f6;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-resource-panel .share-section-head {
|
||||||
|
min-height: 46px;
|
||||||
|
padding: 6px 14px;
|
||||||
|
position: static;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-resource-panel .share-section-icon {
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
flex-basis: 28px;
|
||||||
|
border-radius: 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-section-head > div {
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-section-head strong {
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-section-head small {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-table-wrap {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-card .share-list-table {
|
||||||
|
min-width: 0;
|
||||||
|
display: block;
|
||||||
|
table-layout: auto;
|
||||||
|
background: #f7f9fc;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-card .share-list-table thead {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-card .share-list-table tbody {
|
||||||
|
padding: 8px 12px 16px;
|
||||||
|
display: grid;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-card .share-list-table tbody tr {
|
||||||
|
padding: 11px 12px;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto auto minmax(0, 1fr) auto;
|
||||||
|
gap: 5px 9px;
|
||||||
|
overflow: hidden;
|
||||||
|
border: 1px solid #e2e9f3;
|
||||||
|
border-radius: 12px;
|
||||||
|
background: #fff;
|
||||||
|
box-shadow: 0 3px 12px rgba(30, 55, 91, 0.04);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-card .share-list-table td {
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
|
min-width: 0;
|
||||||
|
padding: 0 !important;
|
||||||
|
display: block;
|
||||||
|
overflow: visible;
|
||||||
|
border: 0;
|
||||||
|
font-size: 10px;
|
||||||
|
text-align: left;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-card .share-list-table td:nth-child(1) {
|
||||||
|
grid-row: 1;
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-card .share-list-table td:nth-child(2) {
|
||||||
|
grid-row: 2;
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-card .share-list-table td:nth-child(3) {
|
||||||
|
grid-row: 3;
|
||||||
|
grid-column: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-card .share-list-table td:nth-child(4) {
|
||||||
|
grid-row: 3;
|
||||||
|
grid-column: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-card .share-list-table td:nth-child(5) {
|
||||||
|
grid-row: 3;
|
||||||
|
grid-column: 3;
|
||||||
|
align-self: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-card .share-list-table td:nth-child(6) {
|
||||||
|
grid-row: 3;
|
||||||
|
grid-column: 4;
|
||||||
|
align-self: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-card .share-list-table td:nth-child(3)::before {
|
||||||
|
content: "访问 ";
|
||||||
|
color: var(--ww-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .shares-page-card .share-list-table td:nth-child(4)::before {
|
||||||
|
content: "下载 ";
|
||||||
|
color: var(--ww-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-list-resource {
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-list-link-text {
|
||||||
|
color: #3773ca;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-number-cell,
|
||||||
|
body.enterprise-netdisk .share-expire-cell {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-list-actions {
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-list-actions .btn {
|
||||||
|
width: 30px;
|
||||||
|
min-width: 30px;
|
||||||
|
min-height: 30px;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-empty-state,
|
||||||
|
body.enterprise-netdisk .share-empty-state.compact {
|
||||||
|
min-height: 220px;
|
||||||
|
padding: 32px 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Settings: one compact identity row, then the active setting content. */
|
||||||
|
body.enterprise-netdisk .settings-page-head {
|
||||||
|
min-height: 58px;
|
||||||
|
padding: 12px 14px 10px;
|
||||||
|
border-bottom: 1px solid #edf1f6;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .settings-page-title {
|
||||||
|
font-size: 21px;
|
||||||
|
line-height: 1.2;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .settings-page-title i {
|
||||||
|
margin-right: 6px;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .settings-page-subtitle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .settings-tabs {
|
||||||
|
min-height: 46px;
|
||||||
|
padding: 0 14px;
|
||||||
|
align-items: flex-end;
|
||||||
|
gap: 20px;
|
||||||
|
overflow-x: auto;
|
||||||
|
white-space: nowrap;
|
||||||
|
scrollbar-width: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .settings-tabs::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .settings-tab {
|
||||||
|
min-height: 45px;
|
||||||
|
padding: 0;
|
||||||
|
gap: 6px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .settings-page-card > .settings-section,
|
||||||
|
body.enterprise-netdisk .settings-page-card > .settings-section-title,
|
||||||
|
body.enterprise-netdisk .settings-page-card > .settings-panel {
|
||||||
|
margin-right: 12px !important;
|
||||||
|
margin-left: 12px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .settings-page-card > .settings-section {
|
||||||
|
margin-top: 12px !important;
|
||||||
|
margin-bottom: 14px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .settings-page-card > .settings-section-title {
|
||||||
|
margin-top: 14px !important;
|
||||||
|
margin-bottom: 8px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .settings-section-title {
|
||||||
|
margin-bottom: 9px !important;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .settings-panel,
|
||||||
|
body.enterprise-netdisk .settings-theme-panel,
|
||||||
|
body.enterprise-netdisk .settings-devices-panel,
|
||||||
|
body.enterprise-netdisk .settings-account-panel {
|
||||||
|
padding: 12px !important;
|
||||||
|
border-radius: 11px !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .settings-subpanel {
|
||||||
|
padding: 10px !important;
|
||||||
|
border-radius: 9px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .settings-local-tip,
|
||||||
|
body.enterprise-netdisk .settings-oss-tip,
|
||||||
|
body.enterprise-netdisk .traffic-report-note {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .settings-traffic-toolbar > div:first-child {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .settings-traffic-toolbar {
|
||||||
|
margin-bottom: 8px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .traffic-kpi-grid,
|
||||||
|
body.enterprise-netdisk .traffic-summary-grid {
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
|
||||||
|
gap: 8px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Admin: one-row navigation and operational data before debug controls. */
|
||||||
|
body.enterprise-netdisk .admin-main-container {
|
||||||
|
padding: 8px 10px calc(76px + env(safe-area-inset-bottom));
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-tabs-card {
|
||||||
|
margin: 0 0 10px !important;
|
||||||
|
padding: 4px !important;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 22;
|
||||||
|
border-radius: 12px;
|
||||||
|
background: rgba(255, 255, 255, 0.96);
|
||||||
|
backdrop-filter: blur(14px);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-tabs-nav {
|
||||||
|
width: 100%;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-tab-btn {
|
||||||
|
width: 100%;
|
||||||
|
min-width: 0;
|
||||||
|
min-height: 40px;
|
||||||
|
padding: 0 4px;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 5px;
|
||||||
|
border-radius: 9px;
|
||||||
|
font-size: 11px;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-overview-page {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-debug-card {
|
||||||
|
order: 99;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-overview-page > .card {
|
||||||
|
margin-bottom: 10px !important;
|
||||||
|
padding: 13px !important;
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-overview-page > .card h3 {
|
||||||
|
margin-bottom: 10px !important;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-storage-card > div[style*="display: grid"] {
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
|
||||||
|
gap: 8px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-storage-card > div[style*="display: grid"] > div {
|
||||||
|
min-width: 0;
|
||||||
|
padding: 11px !important;
|
||||||
|
border-radius: 10px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-storage-card i[style*="font-size: 48px"] {
|
||||||
|
font-size: 30px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-storage-card div[style*="font-size: 28px"] {
|
||||||
|
font-size: 20px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-debug-row {
|
||||||
|
align-items: stretch !important;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-debug-toggle-btn {
|
||||||
|
width: 100%;
|
||||||
|
min-height: 42px;
|
||||||
|
padding: 0 14px !important;
|
||||||
|
font-size: 13px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* User records stay visible; the long query form opens only when requested. */
|
||||||
|
body.enterprise-netdisk .admin-users-page {
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-card {
|
||||||
|
margin: 0 !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
overflow: hidden;
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-header {
|
||||||
|
min-height: 52px;
|
||||||
|
padding: 8px 12px !important;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
gap: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-header h3 {
|
||||||
|
min-width: 0;
|
||||||
|
flex: 1;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .mobile-admin-users-reset-btn {
|
||||||
|
width: 38px;
|
||||||
|
min-height: 38px;
|
||||||
|
padding: 0;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
border: 1px solid #dce4ef;
|
||||||
|
border-radius: 9px;
|
||||||
|
color: #52627a;
|
||||||
|
background: #f7f9fc;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .mobile-admin-users-reset-btn:disabled {
|
||||||
|
color: #aab4c3;
|
||||||
|
background: #f4f6f9;
|
||||||
|
cursor: default;
|
||||||
|
opacity: 0.65;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-refresh-btn {
|
||||||
|
width: 38px;
|
||||||
|
min-width: 38px !important;
|
||||||
|
min-height: 38px;
|
||||||
|
padding: 0 !important;
|
||||||
|
border-radius: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-refresh-btn span {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-toolbar {
|
||||||
|
margin: 0 10px 7px !important;
|
||||||
|
padding: 8px !important;
|
||||||
|
display: grid !important;
|
||||||
|
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||||
|
gap: 6px;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-toolbar .admin-users-filter-search {
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-toolbar .admin-users-filter {
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-toolbar .admin-users-filter:nth-child(2),
|
||||||
|
body.enterprise-netdisk .admin-users-toolbar .admin-users-filter:nth-child(3),
|
||||||
|
body.enterprise-netdisk .admin-users-toolbar .admin-users-filter:nth-child(4) {
|
||||||
|
grid-column: span 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-toolbar .admin-users-filter:nth-child(5) {
|
||||||
|
grid-column: span 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-toolbar .admin-users-filter-page-size {
|
||||||
|
grid-column: span 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-toolbar .admin-users-filter-reset {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-toolbar label {
|
||||||
|
position: absolute;
|
||||||
|
width: 1px;
|
||||||
|
height: 1px;
|
||||||
|
padding: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
clip: rect(0, 0, 0, 0);
|
||||||
|
white-space: nowrap;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-toolbar input,
|
||||||
|
body.enterprise-netdisk .admin-users-toolbar select {
|
||||||
|
min-height: 34px;
|
||||||
|
padding: 0 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-stats {
|
||||||
|
min-height: 34px;
|
||||||
|
padding: 4px 12px 7px !important;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-stat-chip {
|
||||||
|
min-width: 0;
|
||||||
|
padding: 5px 7px;
|
||||||
|
overflow: hidden;
|
||||||
|
font-size: 10px;
|
||||||
|
text-align: center;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-stat-chip:nth-child(n + 4) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-table-wrap {
|
||||||
|
margin: 0 !important;
|
||||||
|
overflow: visible !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-table {
|
||||||
|
min-width: 0 !important;
|
||||||
|
display: block;
|
||||||
|
table-layout: auto !important;
|
||||||
|
background: #f7f9fc;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-table thead {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-table tbody {
|
||||||
|
padding: 8px 10px 12px;
|
||||||
|
display: grid;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-table tbody tr {
|
||||||
|
padding: 11px 12px;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr) auto;
|
||||||
|
gap: 6px 10px;
|
||||||
|
border: 1px solid #e2e9f3 !important;
|
||||||
|
border-radius: 11px;
|
||||||
|
background: #fff;
|
||||||
|
box-shadow: 0 3px 12px rgba(30, 55, 91, 0.04);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-table tbody td {
|
||||||
|
width: auto !important;
|
||||||
|
min-width: 0;
|
||||||
|
padding: 0 !important;
|
||||||
|
display: block !important;
|
||||||
|
overflow: hidden;
|
||||||
|
border: 0;
|
||||||
|
font-size: 10px !important;
|
||||||
|
text-align: left !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-table tbody td:nth-child(1),
|
||||||
|
body.enterprise-netdisk .admin-users-table tbody td:nth-child(6) {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-table tbody td:nth-child(2) {
|
||||||
|
grid-row: 1;
|
||||||
|
grid-column: 1;
|
||||||
|
font-size: 14px !important;
|
||||||
|
font-weight: 800;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-table tbody td:nth-child(3) {
|
||||||
|
grid-row: 1;
|
||||||
|
grid-column: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-table tbody td:nth-child(4) {
|
||||||
|
grid-row: 2;
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
color: var(--ww-muted) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-table tbody td:nth-child(5) {
|
||||||
|
grid-row: 3;
|
||||||
|
grid-column: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-table tbody td:nth-child(9) {
|
||||||
|
grid-row: 3;
|
||||||
|
grid-column: 2;
|
||||||
|
justify-self: end;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-table tbody td:nth-child(7),
|
||||||
|
body.enterprise-netdisk .admin-users-table tbody td:nth-child(8) {
|
||||||
|
grid-row: 4;
|
||||||
|
padding: 7px 8px !important;
|
||||||
|
border-radius: 8px;
|
||||||
|
background: #f7f9fc;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-table tbody td:nth-child(7) {
|
||||||
|
grid-column: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-table tbody td:nth-child(8) {
|
||||||
|
grid-column: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-table tbody td:nth-child(7)::before,
|
||||||
|
body.enterprise-netdisk .admin-users-table tbody td:nth-child(8)::before {
|
||||||
|
margin-bottom: 2px;
|
||||||
|
display: block;
|
||||||
|
color: var(--ww-muted);
|
||||||
|
font-size: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-table tbody td:nth-child(7)::before {
|
||||||
|
content: "存储配额";
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-table tbody td:nth-child(8)::before {
|
||||||
|
content: "下载流量";
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-table tbody td:nth-child(10) {
|
||||||
|
grid-row: 5;
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
padding-top: 3px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-user-actions {
|
||||||
|
display: grid !important;
|
||||||
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||||
|
gap: 5px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-user-action-btn {
|
||||||
|
width: 100%;
|
||||||
|
min-width: 0;
|
||||||
|
min-height: 32px;
|
||||||
|
padding: 0 5px !important;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 10px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .admin-users-pagination {
|
||||||
|
margin: 0 10px 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The file page follows the same compact title scale. */
|
||||||
|
body.enterprise-netdisk .files-page-header {
|
||||||
|
padding: 12px 14px 10px;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .files-page-header .workspace-page-heading h1 {
|
||||||
|
font-size: 21px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .storage-meter-card {
|
||||||
|
padding: 8px 10px 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .storage-meter-track {
|
||||||
|
margin: 6px 0 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 380px) {
|
||||||
|
body.enterprise-netdisk .shares-page-head,
|
||||||
|
body.enterprise-netdisk .settings-page-head {
|
||||||
|
padding-inline: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-resource-tabs,
|
||||||
|
body.enterprise-netdisk .settings-tabs {
|
||||||
|
padding-inline: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-resource-card .share-toolbar {
|
||||||
|
margin-inline: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-filter-controls {
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-resource-card .share-filter-controls select {
|
||||||
|
padding-inline: 5px;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.enterprise-netdisk .share-list-actions .btn {
|
||||||
|
width: 28px;
|
||||||
|
min-width: 28px;
|
||||||
|
min-height: 28px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user