支持素材分页和标签筛选
This commit is contained in:
1 parent
f26b663e46
commit
362c1ede21
18 files changed
+631
-48
No files matched your search
@@ -0,0 +1,3 @@
|
||||
.media-toolbar {
|
||||
grid-template-columns: minmax(280px, 660px) auto;
|
||||
}
|
||||
+261
-39
@@ -1,71 +1,175 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { ImageOff, Search, Upload } from "lucide-react";
|
||||
import { API, assetUrl } from "./api";
|
||||
import {
|
||||
Check,
|
||||
ChevronLeft,
|
||||
ChevronRight,
|
||||
ImageOff,
|
||||
Search,
|
||||
Tag,
|
||||
Upload,
|
||||
X,
|
||||
} from "lucide-react";
|
||||
import { API, apiPost, assetUrl } from "./api";
|
||||
import "./MediaCenter.css";
|
||||
|
||||
const SITE = "SIT0000000000001";
|
||||
|
||||
type Media = {
|
||||
mediaCode: string;
|
||||
mediaType: string;
|
||||
originalFileName: string;
|
||||
url: string;
|
||||
altText?: string;
|
||||
/** 素材业务编号。 */ mediaCode: string;
|
||||
/** 素材类型。 */ mediaType: string;
|
||||
/** 原始文件名。 */ originalFileName: string;
|
||||
/** 素材访问地址。 */ url: string;
|
||||
/** 图片替代文本。 */ altText?: string;
|
||||
/** 素材管理标签。 */ tagName?: string;
|
||||
};
|
||||
|
||||
/** 生成当前分页附近的页码。 */
|
||||
function pageNumbers(pageNo: number, totalPages: number): number[] {
|
||||
const start = Math.max(1, Math.min(pageNo - 2, totalPages - 4));
|
||||
const end = Math.min(totalPages, start + 4);
|
||||
return Array.from(
|
||||
{ length: Math.max(0, end - start + 1) },
|
||||
(_, index) => start + index,
|
||||
);
|
||||
}
|
||||
|
||||
/** 素材中心页面。 */
|
||||
export default function MediaCenter() {
|
||||
const [items, setItems] = useState<Media[]>([]);
|
||||
const [type, setType] = useState("ALL");
|
||||
const [query, setQuery] = useState("");
|
||||
const [debouncedQuery, setDebouncedQuery] = useState("");
|
||||
const [tagFilter, setTagFilter] = useState("");
|
||||
const [tags, setTags] = useState<string[]>([]);
|
||||
const [pageNo, setPageNo] = useState(1);
|
||||
const [pageSize, setPageSize] = useState(30);
|
||||
const [total, setTotal] = useState(0);
|
||||
const [totalPages, setTotalPages] = useState(0);
|
||||
const [loading, setLoading] = useState(true);
|
||||
const [error, setError] = useState("");
|
||||
const [uploading, setUploading] = useState(false);
|
||||
const [editingCode, setEditingCode] = useState("");
|
||||
const [tagValue, setTagValue] = useState("");
|
||||
const [savingTag, setSavingTag] = useState(false);
|
||||
|
||||
/** 加载当前素材类型列表。 */
|
||||
useEffect(() => {
|
||||
const timer = window.setTimeout(() => setDebouncedQuery(query.trim()), 300);
|
||||
return () => window.clearTimeout(timer);
|
||||
}, [query]);
|
||||
|
||||
/** 分页加载符合当前筛选条件的素材。 */
|
||||
const load = async () => {
|
||||
setLoading(true);
|
||||
setError("");
|
||||
try {
|
||||
const response = await fetch(`${API}/media/list`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ siteCode: SITE, mediaType: type }) });
|
||||
if (!response.ok) { const data = await response.json().catch(() => ({})); throw new Error(data.message || "素材加载失败"); }
|
||||
const data = await response.json();
|
||||
const data = await apiPost("/media/page", {
|
||||
siteCode: SITE,
|
||||
mediaType: type,
|
||||
keyword: debouncedQuery,
|
||||
tagName: tagFilter,
|
||||
pageNo,
|
||||
pageSize,
|
||||
});
|
||||
setItems(data.items || []);
|
||||
setTags(data.tags || []);
|
||||
setTotal(data.total || 0);
|
||||
setTotalPages(data.totalPages || 0);
|
||||
} catch (reason) {
|
||||
setItems([]);
|
||||
setError(reason instanceof Error ? reason.message : "素材加载失败");
|
||||
} finally { setLoading(false); }
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
void load();
|
||||
}, [type]);
|
||||
}, [type, debouncedQuery, tagFilter, pageNo, pageSize]);
|
||||
|
||||
/** 切换筛选条件并返回第一页。 */
|
||||
const changeFilter = (setter: (value: string) => void, value: string) => {
|
||||
setter(value);
|
||||
setPageNo(1);
|
||||
};
|
||||
|
||||
/** 上传图片或视频到对象存储。 */
|
||||
const upload = async (file?: File) => {
|
||||
if (!file) return;
|
||||
try {
|
||||
setUploading(true); setError("");
|
||||
const body = new FormData(); body.append("siteCode", SITE); body.append("altText", file.name); body.append("file", file);
|
||||
const response = await fetch(`${API}/media/upload`, { method: "POST", body });
|
||||
if (response.status === 401) window.dispatchEvent(new Event("shoplix:unauthorized"));
|
||||
if (!response.ok) { const data = await response.json().catch(() => ({})); throw new Error(data.message || "素材上传失败"); }
|
||||
setUploading(true);
|
||||
setError("");
|
||||
const body = new FormData();
|
||||
body.append("siteCode", SITE);
|
||||
body.append("altText", file.name);
|
||||
body.append("file", file);
|
||||
const response = await fetch(`${API}/media/upload`, {
|
||||
method: "POST",
|
||||
body,
|
||||
});
|
||||
if (response.status === 401)
|
||||
window.dispatchEvent(new Event("shoplix:unauthorized"));
|
||||
if (!response.ok) {
|
||||
const data = await response.json().catch(() => ({}));
|
||||
throw new Error(data.message || "素材上传失败");
|
||||
}
|
||||
setPageNo(1);
|
||||
await load();
|
||||
} catch (reason) { setError(reason instanceof Error ? reason.message : "素材上传失败"); }
|
||||
finally { setUploading(false); }
|
||||
} catch (reason) {
|
||||
setError(reason instanceof Error ? reason.message : "素材上传失败");
|
||||
} finally {
|
||||
setUploading(false);
|
||||
}
|
||||
};
|
||||
|
||||
const filtered = items.filter((item) =>
|
||||
item.originalFileName.toLowerCase().includes(query.trim().toLowerCase()),
|
||||
);
|
||||
/** 打开指定素材的标签编辑框。 */
|
||||
const editTag = (item: Media) => {
|
||||
setEditingCode(item.mediaCode);
|
||||
setTagValue(item.tagName || "");
|
||||
};
|
||||
|
||||
/** 保存当前素材标签。 */
|
||||
const saveTag = async () => {
|
||||
if (!editingCode) return;
|
||||
try {
|
||||
setSavingTag(true);
|
||||
await apiPost("/media/tag/update", {
|
||||
siteCode: SITE,
|
||||
mediaCode: editingCode,
|
||||
tagName: tagValue.trim(),
|
||||
});
|
||||
setEditingCode("");
|
||||
await load();
|
||||
} catch (reason) {
|
||||
setError(reason instanceof Error ? reason.message : "标签保存失败");
|
||||
} finally {
|
||||
setSavingTag(false);
|
||||
}
|
||||
};
|
||||
|
||||
const pages = pageNumbers(pageNo, totalPages);
|
||||
|
||||
return (
|
||||
<div className="content-page media-center">
|
||||
<header>
|
||||
<div>
|
||||
<h1>素材中心</h1>
|
||||
<p>集中管理上传过的图片和视频,编辑内容时可直接复用</p>
|
||||
<p>集中管理上传过的图片和视频,使用标签快速区分和筛选</p>
|
||||
</div>
|
||||
<label className={`media-upload-button${uploading ? " uploading" : ""}`}><Upload size={17}/>{uploading ? "上传中" : "上传素材"}<input disabled={uploading} type="file" accept="image/jpeg,image/png,image/webp,image/gif,video/mp4,video/webm,video/quicktime,.mov" onChange={(event) => { void upload(event.currentTarget.files?.[0]); event.currentTarget.value = ""; }}/></label>
|
||||
<label
|
||||
className={`media-upload-button${uploading ? " uploading" : ""}`}
|
||||
>
|
||||
<Upload size={17} />
|
||||
{uploading ? "上传中" : "上传素材"}
|
||||
<input
|
||||
disabled={uploading}
|
||||
type="file"
|
||||
accept="image/jpeg,image/png,image/webp,image/gif,video/mp4,video/webm,video/quicktime,.mov"
|
||||
onChange={(event) => {
|
||||
void upload(event.currentTarget.files?.[0]);
|
||||
event.currentTarget.value = "";
|
||||
}}
|
||||
/>
|
||||
</label>
|
||||
</header>
|
||||
|
||||
<section className="toolbar media-toolbar">
|
||||
@@ -74,32 +178,73 @@ export default function MediaCenter() {
|
||||
<input
|
||||
placeholder="搜索文件名"
|
||||
value={query}
|
||||
onChange={(event) => setQuery(event.target.value)}
|
||||
onChange={(event) => {
|
||||
setQuery(event.target.value);
|
||||
setPageNo(1);
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
<select value={type} onChange={(event) => setType(event.target.value)}>
|
||||
<option value="ALL">全部素材</option>
|
||||
<option value="IMAGE">图片</option>
|
||||
<option value="VIDEO">视频</option>
|
||||
</select>
|
||||
<div className="media-filters">
|
||||
<select
|
||||
value={tagFilter}
|
||||
onChange={(event) => changeFilter(setTagFilter, event.target.value)}
|
||||
>
|
||||
<option value="">全部标签</option>
|
||||
{tags.map((tag) => (
|
||||
<option key={tag} value={tag}>
|
||||
{tag}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
<select
|
||||
value={type}
|
||||
onChange={(event) => changeFilter(setType, event.target.value)}
|
||||
>
|
||||
<option value="ALL">全部素材</option>
|
||||
<option value="IMAGE">图片</option>
|
||||
<option value="VIDEO">视频</option>
|
||||
</select>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{error && <div className="notice">{error}。请检查 Admin 服务和数据库连接。</div>}
|
||||
|
||||
{error && <div className="notice">{error}</div>}
|
||||
<section className="media-panel">
|
||||
<div className="media-result-summary">
|
||||
<span>共 {total} 个素材</span>
|
||||
<label>
|
||||
每页
|
||||
<select
|
||||
value={pageSize}
|
||||
onChange={(event) => {
|
||||
setPageSize(Number(event.target.value));
|
||||
setPageNo(1);
|
||||
}}
|
||||
>
|
||||
<option value={20}>20</option>
|
||||
<option value={30}>30</option>
|
||||
<option value={50}>50</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
{loading ? (
|
||||
<div className="media-empty">
|
||||
<strong>正在加载素材</strong>
|
||||
</div>
|
||||
) : filtered.length === 0 ? (
|
||||
) : items.length === 0 ? (
|
||||
<div className="media-empty">
|
||||
<ImageOff size={46} strokeWidth={1.5} />
|
||||
<strong>{query ? "未找到匹配素材" : "暂无素材"}</strong>
|
||||
<p>{query ? "请尝试更换搜索关键词" : "上传图片或视频后,素材会统一展示在这里"}</p>
|
||||
<strong>
|
||||
{debouncedQuery || tagFilter ? "未找到匹配素材" : "暂无素材"}
|
||||
</strong>
|
||||
<p>
|
||||
{debouncedQuery || tagFilter
|
||||
? "请尝试更换搜索关键词或标签"
|
||||
: "上传图片或视频后,素材会统一展示在这里"}
|
||||
</p>
|
||||
</div>
|
||||
) : (
|
||||
<div className="media-grid">
|
||||
{filtered.map((item) => (
|
||||
{items.map((item) => (
|
||||
<article className="media-card" key={item.mediaCode}>
|
||||
{item.mediaType === "VIDEO" ? (
|
||||
<video src={item.url} controls />
|
||||
@@ -109,15 +254,92 @@ export default function MediaCenter() {
|
||||
alt={item.altText || item.originalFileName}
|
||||
/>
|
||||
)}
|
||||
<strong title={item.originalFileName}>{item.originalFileName}</strong>
|
||||
<strong title={item.originalFileName}>
|
||||
{item.originalFileName}
|
||||
</strong>
|
||||
<small>{item.mediaCode}</small>
|
||||
<button className="link" onClick={() => navigator.clipboard.writeText(item.url)}>
|
||||
{editingCode === item.mediaCode ? (
|
||||
<div className="media-tag-editor">
|
||||
<input
|
||||
autoFocus
|
||||
maxLength={50}
|
||||
placeholder="输入标签"
|
||||
value={tagValue}
|
||||
onChange={(event) => setTagValue(event.target.value)}
|
||||
onKeyDown={(event) => {
|
||||
if (event.key === "Enter") void saveTag();
|
||||
if (event.key === "Escape") setEditingCode("");
|
||||
}}
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
title="保存标签"
|
||||
disabled={savingTag}
|
||||
onClick={() => void saveTag()}
|
||||
>
|
||||
<Check size={15} />
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
title="取消"
|
||||
onClick={() => setEditingCode("")}
|
||||
>
|
||||
<X size={15} />
|
||||
</button>
|
||||
</div>
|
||||
) : (
|
||||
<button
|
||||
type="button"
|
||||
className={`media-tag${item.tagName ? " assigned" : ""}`}
|
||||
onClick={() => editTag(item)}
|
||||
>
|
||||
<Tag size={14} />
|
||||
{item.tagName || "添加标签"}
|
||||
</button>
|
||||
)}
|
||||
<button
|
||||
className="link"
|
||||
onClick={() => navigator.clipboard.writeText(item.url)}
|
||||
>
|
||||
复制地址
|
||||
</button>
|
||||
</article>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
{totalPages > 1 && (
|
||||
<nav className="media-pagination" aria-label="素材分页">
|
||||
<button
|
||||
type="button"
|
||||
title="上一页"
|
||||
disabled={pageNo <= 1}
|
||||
onClick={() => setPageNo((current) => current - 1)}
|
||||
>
|
||||
<ChevronLeft size={17} />
|
||||
</button>
|
||||
{pages.map((page) => (
|
||||
<button
|
||||
type="button"
|
||||
className={page === pageNo ? "active" : ""}
|
||||
key={page}
|
||||
onClick={() => setPageNo(page)}
|
||||
>
|
||||
{page}
|
||||
</button>
|
||||
))}
|
||||
<button
|
||||
type="button"
|
||||
title="下一页"
|
||||
disabled={pageNo >= totalPages}
|
||||
onClick={() => setPageNo((current) => current + 1)}
|
||||
>
|
||||
<ChevronRight size={17} />
|
||||
</button>
|
||||
<span>
|
||||
第 {pageNo} / {totalPages} 页
|
||||
</span>
|
||||
</nav>
|
||||
)}
|
||||
</section>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -444,4 +444,5 @@ header p {
|
||||
.pv-product-detail{padding:44px 5%;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr);gap:34px;align-items:start}.pv-product-image{aspect-ratio:1/1;background:#eef2f0;display:grid;place-items:center;color:#899691;overflow:hidden}.pv-product-image img{width:100%;height:100%;object-fit:contain}.pv-product-summary>span{font-size:11px;font-weight:800;color:#176b5d}.pv-product-detail h1{font-size:34px;line-height:1.12;margin:12px 0 18px}.pv-product-detail p{line-height:1.65;color:#61706b}.pv-product-detail button{border:0;color:#fff;padding:12px 20px;font-weight:700;margin-top:10px}.pv-product-information{margin:18px 0;max-height:210px;overflow:auto}.pv-product-information h2{font:500 14px Georgia,serif;margin:0 0 8px}.pv-product-information dl{margin:0}.pv-product-information dl>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:14px;padding:6px 0}.pv-product-information dt,.pv-product-information dd{margin:0;font-size:12px}.pv-product-information dt{color:#7a8783}.pv-product-information dd{font-weight:500;overflow-wrap:anywhere}.preview-frame[style*="390px"] .pv-product-detail{grid-template-columns:1fr;padding:28px 20px}.preview-frame[style*="390px"] .pv-product-detail h1{font-size:27px}
|
||||
@media(max-width:900px){.specification-row{grid-template-columns:1fr 1fr}.specification-values{grid-column:1/-1}.specification-row button{grid-column:2;justify-self:end;width:42px}}
|
||||
.template-editor-layout{max-width:1500px;margin:auto;display:grid;gap:20px}.template-editor-tip,.template-selection-note{margin:0;color:#73817d;font-size:13px;line-height:1.6}.template-table .thead,.template-table .row{grid-template-columns:minmax(0,2fr) 130px 90px 180px}.template-table .row-actions{display:flex;justify-content:flex-end;gap:12px}.template-table .row-actions .danger{color:#a93636}.template-table button svg{vertical-align:middle;margin-right:4px}@media(max-width:760px){.template-table .thead{display:none}.template-table .row{grid-template-columns:1fr}.template-table .row-actions{justify-content:flex-start}}
|
||||
.media-filters{display:flex;gap:10px}.media-result-summary{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;color:#66757b;font-size:13px}.media-result-summary label{display:flex;align-items:center;gap:8px}.media-result-summary select{height:34px;border:1px solid #d8dee3;border-radius:4px;background:#fff;padding:0 8px}.media-tag{height:30px;border:1px dashed #b9c7c3;background:#f8faf9;color:#647570;border-radius:4px;padding:0 8px;display:flex;align-items:center;gap:6px;justify-content:center;cursor:pointer;overflow:hidden}.media-tag.assigned{border-style:solid;background:#e9f3ef;color:#176b5b}.media-tag-editor{display:grid;grid-template-columns:minmax(0,1fr) 30px 30px;gap:5px}.media-tag-editor input{min-width:0;border:1px solid #b8c6c2;border-radius:4px;padding:6px 8px}.media-tag-editor button{border:1px solid #d5ddda;background:#fff;border-radius:4px;display:grid;place-items:center;cursor:pointer}.media-pagination{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:20px}.media-pagination button{width:36px;height:36px;border:1px solid #d5ddda;background:#fff;border-radius:4px;display:grid;place-items:center;cursor:pointer}.media-pagination button.active{background:#176b5b;border-color:#176b5b;color:#fff}.media-pagination button:disabled{opacity:.45;cursor:not-allowed}.media-pagination span{margin-left:8px;color:#718087;font-size:13px}@media(max-width:760px){.media-filters{display:grid}.media-result-summary{align-items:flex-start}.media-pagination{flex-wrap:wrap}}
|
||||
.dashboard-page{padding:34px 38px 48px;max-width:1600px;margin:0 auto}.dashboard-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:26px}.dashboard-header h1{font-size:30px;margin:0 0 7px;letter-spacing:0}.dashboard-header p{margin:0;color:#76827f}.dashboard-updated{display:flex;align-items:center;gap:12px;color:#7b8784;font-size:13px}.dashboard-updated button{width:38px;height:38px;border:1px solid #d9e0dd;background:#fff;display:grid;place-items:center;color:#176b5b}.spin{animation:dashboard-spin 1s linear infinite}@keyframes dashboard-spin{to{transform:rotate(360deg)}}.dashboard-inline-error{padding:10px 14px;margin-bottom:18px;background:#fff3f1;color:#a43d31;border-left:3px solid #c95043}.dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #dfe5e2;background:#fff;margin-bottom:20px}.dashboard-metric{min-width:0;height:132px;border:0;border-right:1px solid #e5e9e7;background:#fff;padding:24px;display:flex;align-items:flex-start;gap:16px;text-align:left;color:#182522}.dashboard-metric:last-child{border-right:0}.dashboard-metric:not(:disabled){cursor:pointer}.dashboard-metric:not(:disabled):hover{background:#f7faf9}.dashboard-metric>span:nth-child(2){display:grid;gap:4px}.dashboard-metric small{color:#74817d;font-size:12px}.dashboard-metric strong{font-size:29px;letter-spacing:0}.dashboard-metric em{font-style:normal;color:#697672;font-size:12px}.dashboard-metric>svg{margin-left:auto;color:#176b5b}.metric-icon{width:38px;height:38px;display:grid;place-items:center;background:#e9f3ef;color:#176b5b}.metric-icon svg{width:19px}.dashboard-grid{display:grid;gap:20px;margin-bottom:20px}.dashboard-primary-grid{grid-template-columns:minmax(0,1.7fr) minmax(320px,.8fr)}.dashboard-secondary-grid{grid-template-columns:minmax(0,1.35fr) minmax(250px,.7fr) minmax(0,1.15fr)}.dashboard-panel{background:#fff;border:1px solid #dfe5e2;padding:24px;min-width:0}.dashboard-panel-title{height:30px;display:flex;align-items:start;justify-content:space-between}.dashboard-panel-title h2{font-size:17px;margin:0;letter-spacing:0}.dashboard-panel-title>span,.dashboard-panel-title button{font-size:12px;color:#7b8784}.dashboard-panel-title button{border:0;background:transparent;display:flex;align-items:center;gap:4px;cursor:pointer}.traffic-legend{display:flex;justify-content:flex-end;gap:16px;font-size:11px;color:#77837f}.traffic-legend span{display:flex;align-items:center;gap:5px}.traffic-legend i{width:8px;height:8px}.traffic-legend .pv,.traffic-bars .pv{background:#176b5b}.traffic-legend .uv,.traffic-bars .uv{background:#b9d6cc}.traffic-chart{height:230px;display:flex;align-items:end;gap:9px;border-bottom:1px solid #dfe5e2;padding-top:24px}.traffic-day{height:100%;flex:1;min-width:0;display:grid;grid-template-rows:1fr 22px;gap:8px}.traffic-bars{display:flex;align-items:end;justify-content:center;gap:3px}.traffic-bars i{width:min(12px,40%);min-height:3px}.traffic-day>span{text-align:center;font-size:10px;color:#83908c;white-space:nowrap}.content-stat-list{display:grid;gap:20px;margin-top:22px}.content-stat-list button{border:0;background:transparent;padding:0;text-align:left;cursor:pointer}.content-stat-list button>span{display:flex;justify-content:space-between}.content-stat-list b{font-size:13px}.content-stat-list small{color:#76827f}.content-stat-list i,.device-list i{display:block;height:5px;background:#edf1ef;margin-top:8px}.content-stat-list em,.device-list em{display:block;height:100%;background:#176b5b}.publish-summary{display:flex;gap:8px;align-items:center;margin-top:24px;padding-top:18px;border-top:1px solid #e2e7e5;color:#52615d;font-size:12px}.top-page-list{margin-top:14px}.top-page-list>div{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #edf0ef}.top-page-list>div>b{color:#9aa5a1;font-size:11px}.top-page-list span{min-width:0;display:grid}.top-page-list strong,.top-page-list small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-page-list strong{font-size:13px}.top-page-list small{font-size:11px;color:#86918e}.top-page-list em{font-style:normal;font-size:12px;color:#52615d}.device-list{display:grid;gap:20px;margin-top:22px}.device-list>div{display:grid;grid-template-columns:1fr auto;align-items:center}.device-list span{display:flex;gap:7px;align-items:center;font-size:12px}.device-list b{font-size:12px}.device-list i{grid-column:1/-1}.recent-inquiries{margin-top:12px}.recent-inquiries button{width:100%;border:0;border-bottom:1px solid #edf0ef;background:transparent;padding:12px 0;display:flex;justify-content:space-between;gap:12px;text-align:left;cursor:pointer}.recent-inquiries button:hover strong{color:#176b5b}.recent-inquiries span,.recent-inquiries em{display:grid;gap:3px;min-width:0}.recent-inquiries strong{font-size:13px}.recent-inquiries small{font-size:11px;color:#83908c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-inquiries emLine truncated
|
||||
Reference in new issue
Block a user