編輯個人資料改地方、圖片自帶出處

This commit is contained in:
Sahik committed 2026-11-26 11:45:04 +08:00
1 parent e75f0c95e9
commit 61e8580c72
27 files changed
+906 -160

No files matched your search

+118 -10
View File
@@ -34,6 +34,8 @@ const state = {
zhiAutoTimer: null,
zhiCoolUntil: 0, // 冷靜到什麼時候
noticeCount: 0, // 通知匣已經載入幾則
gallery: [], // 管理圖片:圖庫清單
galleryHidden: false, // 管理圖片:現在看的是已下架的
zhiLastAt: 0, // 上一次繼續吱吱的時間
zhiPlay: 0, // 第幾次播放;離開再進來時,舊的那次播完不能動到新的
zhiFlush: null, // 正在送次數的 Promise(離開時等它送完)
@@ -63,6 +65,9 @@ async function loadLang(lang) {
document.documentElement.lang = HTML_LANG[lang];
$("lang").value = lang;
document.querySelectorAll("[data-i18n]").forEach((el) => { el.textContent = t(el.dataset.i18n); });
document.querySelectorAll("[data-i18n-placeholder]").forEach((el) => {
el.placeholder = t(el.dataset.i18nPlaceholder);
});
document.querySelectorAll("[data-i18n-aria]").forEach((el) => {
el.setAttribute("aria-label", t(el.dataset.i18nAria));
});
@@ -780,7 +785,7 @@ function bindCheckin() {
// ---------- 畫面切換 ----------
function showView(id) {
for (const v of ["view-checkin", "view-user", "view-upload", "view-review", "view-notices"]) $(v).hidden = v !== id;
for (const v of ["view-checkin", "view-user", "view-upload", "view-images", "view-notices"]) $(v).hidden = v !== id;
if (id !== "view-checkin") { clearInterval(state.resetTimer); closeStage(); state.guestOn = false; }
}
@@ -839,6 +844,7 @@ function bindUpload() {
if (file.size > SUBMIT_MAX_BYTES) { showError($("upload-error"), { code: "file_too_large" }); continue; }
const fd = new FormData();
fd.append("file", file);
fd.append("source", $("upload-source").value);
try {
await api("POST", "/api/submissions", fd);
ok++;
@@ -847,12 +853,12 @@ function bindUpload() {
if (e.code === "quota_exceeded" || e.code === "too_frequent") break;
}
}
if (ok) toast(t("upload.done", { n: ok }));
if (ok) { toast(t("upload.done", { n: ok })); $("upload-source").value = ""; }
await refreshUploads();
});
}
// ---------- 管理員審核(一張一張) ----------
// ---------- 管理圖片:審核投稿(一張一張)、新增、圖庫 ----------
async function loadReview() {
try {
@@ -870,17 +876,108 @@ async function loadReview() {
$("review-name").href = `/u/${it.uploader.uid_str}`;
showUid($("review-uid"), it.uploader);
$("review-time").textContent = new Date(it.created_at).toLocaleString(HTML_LANG[state.lang]);
$("review-source").value = it.source || "";
} catch (e) {
if (e.status === 401 || e.status === 403) { location.replace("/"); return; }
toast(errText(e));
}
}
async function showReview() {
showView("view-review");
document.title = `${t("review.heading")} · ${SITE_TITLE}`;
async function showImages() {
if (location.pathname !== "/images") history.replaceState(null, "", "/images"); // 1.0 的 /review
showView("view-images");
document.title = `${t("images.heading")} · ${SITE_TITLE}`;
if (!state.me?.is_admin) { location.replace("/"); return; }
await loadReview();
await Promise.all([loadReview(), loadGallery()]);
}
async function loadGallery() {
try {
state.gallery = (await api("GET", "/api/admin/memes")).items;
renderGallery();
} catch (e) {
if (e.status === 401 || e.status === 403) { location.replace("/"); return; }
toast(errText(e));
}
}
function renderGallery() {
const hidden = state.galleryHidden;
const shown = state.gallery.filter((m) => !m.hidden);
$("gallery-shown").textContent = t("images.shown", { n: shown.length });
$("gallery-hidden").textContent = t("images.hidden", { n: state.gallery.length - shown.length });
for (const [id, on] of [["gallery-shown", !hidden], ["gallery-hidden", hidden]]) {
$(id).classList.toggle("on", on);
$(id).setAttribute("aria-pressed", String(on));
}
const items = state.gallery.filter((m) => m.hidden === hidden);
$("gallery-empty").hidden = items.length > 0;
$("gallery").replaceChildren(...items.map(galleryItem));
}
function galleryItem(m) {
const box = document.createElement("div");
box.className = "meme-item";
const img = document.createElement("img");
img.src = m.thumb_url;
img.alt = m.name;
img.loading = "lazy";
img.title = m.name;
const used = document.createElement("span");
used.className = "hint";
used.textContent = t("images.used", { n: fmtNum(m.used) });
const source = document.createElement("input");
source.maxLength = 40;
source.value = m.source;
source.placeholder = t("source.placeholder");
source.setAttribute("aria-label", t("source.label"));
source.addEventListener("change", () => updateMeme(m.name, { source: source.value }, source));
const toggle = document.createElement("button");
toggle.type = "button";
toggle.textContent = t(m.hidden ? "images.show" : "images.hide");
toggle.addEventListener("click", () => updateMeme(m.name, { hidden: !m.hidden }, toggle));
box.append(img, used, source, toggle);
return box;
}
async function updateMeme(name, body, el) {
el.disabled = true;
try {
const m = await api("PUT", `/api/admin/memes/${encodeURIComponent(name)}`, body);
state.gallery = state.gallery.map((x) => (x.name === name ? m : x));
toast(t("images.saved"));
if ("hidden" in body) renderGallery();
} catch (e) {
toast(errText(e));
} finally {
el.disabled = false;
}
}
async function addImages(files) {
const total = files.length;
$("add-pick").classList.add("busy");
showError($("add-error"), null);
let ok = 0;
for (const [i, file] of files.entries()) { // 一張一張傳
$("add-progress").textContent = t("images.progress", { i: i + 1, n: total });
if (file.size > SUBMIT_MAX_BYTES) { showError($("add-error"), { code: "file_too_large" }); continue; }
const fd = new FormData();
fd.append("file", file);
fd.append("source", $("add-source").value);
try {
await api("POST", "/api/admin/memes", fd);
ok++;
} catch (e) {
showError($("add-error"), e);
if (e.code === "too_frequent" || e.code === "source_too_long") break;
}
}
$("add-progress").textContent = "";
$("add-pick").classList.remove("busy");
if (ok) { toast(t("images.added", { n: ok })); $("add-source").value = ""; }
state.galleryHidden = false;
await loadGallery();
}
function bindReview() {
@@ -889,8 +986,10 @@ function bindReview() {
const sid = $("review-item").dataset.id;
buttons.forEach((b) => { b.disabled = true; });
try {
await api("POST", `/api/admin/submissions/${sid}/${action}`);
const body = action === "approve" ? { source: $("review-source").value } : undefined;
await api("POST", `/api/admin/submissions/${sid}/${action}`, body);
toast(t(`review.${action}d`));
if (action === "approve") loadGallery();
} catch (e) {
// 已經審過(例如另一個分頁)就直接跳下一張
if (e.code !== "already_reviewed" && e.code !== "not_found") toast(errText(e));
@@ -901,6 +1000,14 @@ function bindReview() {
};
$("review-approve").addEventListener("click", () => decide("approve"));
$("review-reject").addEventListener("click", () => decide("reject"));
$("add-file").addEventListener("change", (ev) => {
const files = [...ev.target.files];
ev.target.value = "";
if (files.length) addImages(files);
});
for (const [id, hidden] of [["gallery-shown", false], ["gallery-hidden", true]]) {
$(id).addEventListener("click", () => { state.galleryHidden = hidden; renderGallery(); });
}
}
// ---------- 管理員通知匣 ----------
@@ -982,6 +1089,7 @@ async function showUser(uid) {
// 管理員:下面多一個設定這個 UID 顏色與稱號的表單
const form = $("title-form");
form.hidden = !state.me?.is_admin;
$("user-edit").hidden = state.me?.uid !== u.uid; // 只能改自己的
$("flag-box").hidden = !u.flagged;
$("flag-box").dataset.uid = u.uid;
form.dataset.uid = u.uid;
@@ -1033,7 +1141,7 @@ function bindTitle() {
function bindProfile() {
const dialog = $("profile-dialog");
$("edit-profile").addEventListener("click", () => {
$("user-edit").addEventListener("click", () => {
const me = state.me;
$("edit-avatar").src = me.avatar_url || DEFAULT_AVATAR;
$("edit-name").value = me.display_name;
@@ -1122,7 +1230,7 @@ async function route() {
const m = location.pathname.match(/^\/u\/(\d+)$/);
if (m) return showUser(m[1]);
if (location.pathname === "/upload") return showUpload();
if (location.pathname === "/review") return showReview();
if (location.pathname === "/images" || location.pathname === "/review") return showImages();
if (location.pathname === "/notices") return showNotices();
return showCheckin();
}
+22 -3
View File
@@ -53,7 +53,7 @@
"err.unknown": "Something went wrong",
"err.code_used": "This code has already been used. Please get a new code in a moment",
"nav.upload": "Submit images",
"nav.review": "Review submissions ({n})",
"nav.review": "Manage images ({n})",
"upload.heading": "Submit images",
"upload.hint": "Upload images you think belong on a squeak card. Approved images join the draw. Up to 5 per day (resets at 04:00 Taiwan time), 5MB each.",
"upload.choose": "Choose images",
@@ -64,7 +64,7 @@
"upload.status.pending": "Pending",
"upload.status.approved": "Added",
"upload.status.rejected": "Not accepted",
"review.heading": "Review submissions",
"review.heading": "Pending submissions",
"review.left": "{n} waiting",
"review.approve": "Approve",
"review.reject": "Reject",
@@ -121,5 +121,24 @@
"err.cooldown": "Too fast. Take a 10 second break",
"err.too_frequent": "Too many attempts. Please try again later",
"notice.admin_login": "Admin signed in",
"notice.mail_limit": "Site-wide email limit reached"
"notice.mail_limit": "Site-wide email limit reached",
"user.edit": "Edit",
"images.heading": "Manage images",
"images.add": "Add images",
"images.add_hint": "Selected images are re-encoded and published right away, without review. The source applies to the whole batch. Up to 5MB each.",
"images.choose": "Choose images",
"images.progress": "Uploading {i} / {n}",
"images.added": "Added {n}",
"images.gallery": "Gallery",
"images.shown": "Published ({n})",
"images.hidden": "Unpublished ({n})",
"images.hide": "Unpublish",
"images.show": "Publish",
"images.used": "Drawn {n} times",
"images.empty": "No images",
"images.saved": "Updated",
"source.label": "Source (optional)",
"source.placeholder": "e.g. x@sthkm3",
"err.source_too_long": "Source can be up to 40 characters",
"err.unsupported_format": "Only JPG, PNG and WEBP are supported (no GIF)"
}
+22 -3
View File
@@ -53,7 +53,7 @@
"err.unknown": "エラーが発生しました",
"err.code_used": "この認証コードは使用済みです。しばらくしてから新しいコードをお使いください",
"nav.upload": "画像を投稿",
"nav.review": "投稿の審査({n})",
"nav.review": "画像の管理({n})",
"upload.heading": "画像を投稿",
"upload.hint": "カードに載せたい画像をアップロードしてください。審査に通るとガチャに追加されます。1日5枚まで(台湾時間 04:00 にリセット)、5MBまで。",
"upload.choose": "画像を選ぶ",
@@ -64,7 +64,7 @@
"upload.status.pending": "審査中",
"upload.status.approved": "採用",
"upload.status.rejected": "不採用",
"review.heading": "投稿の審査",
"review.heading": "審査待ちの投稿",
"review.left": "審査待ち {n} 枚",
"review.approve": "採用",
"review.reject": "却下",
@@ -121,5 +121,24 @@
"err.cooldown": "速すぎます。10 秒待ってからどうぞ",
"err.too_frequent": "操作が頻繁すぎます。しばらくしてからお試しください",
"notice.admin_login": "管理者がログインしました",
"notice.mail_limit": "メール送信数がサイト全体の上限に達しました"
"notice.mail_limit": "メール送信数がサイト全体の上限に達しました",
"user.edit": "編集",
"images.heading": "画像の管理",
"images.add": "画像を追加",
"images.add_hint": "選んだ画像は再エンコードしてそのまま公開します(審査なし)。出典はこのまとめて全部に付きます。1 枚 5MB まで。",
"images.choose": "画像を選ぶ",
"images.progress": "アップロード中 {i} / {n}",
"images.added": "{n} 枚追加しました",
"images.gallery": "画像一覧",
"images.shown": "公開中({n})",
"images.hidden": "非公開({n})",
"images.hide": "非公開にする",
"images.show": "公開する",
"images.used": "{n} 回使用",
"images.empty": "画像がありません",
"images.saved": "更新しました",
"source.label": "出典(任意)",
"source.placeholder": "例:x@sthkm3",
"err.source_too_long": "出典は 40 文字までです",
"err.unsupported_format": "JPG・PNG・WEBP のみ対応しています(GIF は不可)"
}
+22 -3
View File
@@ -53,7 +53,7 @@
"err.unknown": "오류가 발생했습니다",
"err.code_used": "이미 사용한 인증 코드입니다. 잠시 후 새 코드를 사용해 주세요",
"nav.upload": "이미지 투고",
"nav.review": "투고 심사 ({n})",
"nav.review": "이미지 관리 ({n})",
"upload.heading": "이미지 투고",
"upload.hint": "카드에 넣고 싶은 이미지를 올려 주세요. 심사를 통과하면 뽑기에 추가됩니다. 하루 최대 5장(대만 시간 04:00 초기화), 5MB까지.",
"upload.choose": "이미지 선택",
@@ -64,7 +64,7 @@
"upload.status.pending": "심사 중",
"upload.status.approved": "채택",
"upload.status.rejected": "미채택",
"review.heading": "투고 심사",
"review.heading": "심사 대기 투고",
"review.left": "심사 대기 {n}장",
"review.approve": "승인",
"review.reject": "거절",
@@ -121,5 +121,24 @@
"err.cooldown": "너무 빨라요. 10초 쉬었다 하세요",
"err.too_frequent": "너무 자주 시도했어요. 잠시 후 다시 시도해 주세요",
"notice.admin_login": "관리자 로그인",
"notice.mail_limit": "메일 발송이 전체 한도에 도달했어요"
"notice.mail_limit": "메일 발송이 전체 한도에 도달했어요",
"user.edit": "편집",
"images.heading": "이미지 관리",
"images.add": "이미지 추가",
"images.add_hint": "고른 이미지는 다시 인코딩해서 심사 없이 바로 공개돼요. 출처는 이번에 고른 이미지 전체에 적용돼요. 한 장에 5MB까지.",
"images.choose": "이미지 선택",
"images.progress": "업로드 중 {i} / {n}",
"images.added": "{n}장 추가했어요",
"images.gallery": "이미지 목록",
"images.shown": "공개 중 ({n})",
"images.hidden": "비공개 ({n})",
"images.hide": "비공개",
"images.show": "공개",
"images.used": "{n}번 뽑힘",
"images.empty": "이미지가 없어요",
"images.saved": "업데이트했어요",
"source.label": "출처 (선택)",
"source.placeholder": "예: x@sthkm3",
"err.source_too_long": "출처는 40자까지예요",
"err.unsupported_format": "JPG, PNG, WEBP만 지원해요 (GIF 불가)"
}
+22 -3
View File
@@ -53,7 +53,7 @@
"err.unknown": "发生错误,请稍后再试",
"err.code_used": "这组验证码已经用过,请稍后获取新的验证码",
"nav.upload": "投稿图片",
"nav.review": "审核投稿({n})",
"nav.review": "管理图片({n})",
"upload.heading": "投稿图片",
"upload.hint": "上传你觉得适合放上吱咪小卡的图,审核通过后就会加入抽卡。每天最多 5 张(台湾时间 04:00 重置),上限 5MB。",
"upload.choose": "选择图片",
@@ -64,7 +64,7 @@
"upload.status.pending": "审核中",
"upload.status.approved": "已加入",
"upload.status.rejected": "未通过",
"review.heading": "审核投稿",
"review.heading": "待审投稿",
"review.left": "待审 {n} 张",
"review.approve": "同意",
"review.reject": "拒绝",
@@ -121,5 +121,24 @@
"err.cooldown": "吱太快了,冷静 10 秒再吱",
"err.too_frequent": "操作太频繁,请稍后再试",
"notice.admin_login": "管理员登录",
"notice.mail_limit": "发信数量到达全站上限"
"notice.mail_limit": "发信数量到达全站上限",
"user.edit": "编辑",
"images.heading": "管理图片",
"images.add": "新增图片",
"images.add_hint": "选好的图会重新编码后直接上架,不用审核;出处会套用到这一批。每张上限 5MB。",
"images.choose": "选择图片",
"images.progress": "上传中 {i} / {n}",
"images.added": "已新增 {n} 张",
"images.gallery": "图库",
"images.shown": "上架中({n})",
"images.hidden": "已下架({n})",
"images.hide": "下架",
"images.show": "上架",
"images.used": "抽过 {n} 次",
"images.empty": "没有图片",
"images.saved": "已更新",
"source.label": "出处(选填)",
"source.placeholder": "例如 x@sthkm3",
"err.source_too_long": "出处最多 40 个字",
"err.unsupported_format": "只支持 JPG、PNG、WEBP(不收 GIF)"
}
+22 -3
View File
@@ -53,7 +53,7 @@
"err.unknown": "發生錯誤,請稍後再試",
"err.code_used": "這組驗證碼已經用過,請稍後取得新的驗證碼",
"nav.upload": "投稿圖片",
"nav.review": "審核投稿({n})",
"nav.review": "管理圖片({n})",
"upload.heading": "投稿圖片",
"upload.hint": "上傳你覺得適合放上吱咪小卡的圖,審核通過後就會加入抽卡。每天最多 5 張(台灣時間 04:00 重置),上限 5MB。",
"upload.choose": "選擇圖片",
@@ -64,7 +64,7 @@
"upload.status.pending": "審核中",
"upload.status.approved": "已加入",
"upload.status.rejected": "未通過",
"review.heading": "審核投稿",
"review.heading": "待審投稿",
"review.left": "待審 {n} 張",
"review.approve": "同意",
"review.reject": "拒絕",
@@ -121,5 +121,24 @@
"err.cooldown": "吱太快了,冷靜 10 秒再吱",
"err.too_frequent": "操作太頻繁,請稍後再試",
"notice.admin_login": "管理員登入",
"notice.mail_limit": "寄信數量到達全站上限"
"notice.mail_limit": "寄信數量到達全站上限",
"user.edit": "編輯",
"images.heading": "管理圖片",
"images.add": "新增圖片",
"images.add_hint": "選好的圖會重新編碼後直接上架,不用審核;出處會套用到這一批。每張上限 5MB。",
"images.choose": "選擇圖片",
"images.progress": "上傳中 {i} / {n}",
"images.added": "已新增 {n} 張",
"images.gallery": "圖庫",
"images.shown": "上架中({n})",
"images.hidden": "已下架({n})",
"images.hide": "下架",
"images.show": "上架",
"images.used": "抽過 {n} 次",
"images.empty": "沒有圖片",
"images.saved": "已更新",
"source.label": "出處(選填)",
"source.placeholder": "例如 x@sthkm3",
"err.source_too_long": "出處最多 40 個字",
"err.unsupported_format": "只支援 JPG、PNG、WEBP(不收 GIF)"
}
+35 -8
View File
@@ -54,9 +54,8 @@
<nav class="me-nav">
<a id="me-link" href="/" data-i18n="profile.view"></a>
<a id="upload-link" href="/upload" data-i18n="nav.upload"></a>
<a id="review-link" href="/review" hidden></a>
<a id="review-link" href="/images" hidden></a>
<a id="notices-link" href="/notices" hidden></a>
<button type="button" class="link" id="edit-profile" data-i18n="profile.edit"></button>
<button type="button" class="link" id="logout" data-i18n="auth.logout"></button>
</nav>
</section>
@@ -120,30 +119,57 @@
<p class="hint" data-i18n="upload.hint"></p>
<div class="row upload-bar">
<label class="button primary" for="upload-file" id="upload-pick" data-i18n="upload.choose"></label>
<input type="file" id="upload-file" accept="image/*" multiple hidden>
<input type="file" id="upload-file" accept="image/jpeg,image/png,image/webp" multiple hidden>
<span class="muted" id="upload-quota"></span>
</div>
<label class="source-field"><span data-i18n="source.label"></span>
<input id="upload-source" maxlength="40" autocomplete="off" data-i18n-placeholder="source.placeholder">
</label>
<p class="error" id="upload-error" hidden></p>
<h2 data-i18n="upload.mine"></h2>
<p class="hint" id="upload-empty" data-i18n="upload.empty" hidden></p>
<div class="sub-grid" id="upload-list"></div>
</section>
<section id="view-review" hidden>
<h1 data-i18n="review.heading"></h1>
<p class="muted" id="review-left"></p>
<section id="view-images" hidden>
<h1 data-i18n="images.heading"></h1>
<h2><span data-i18n="review.heading"></span> <small class="muted" id="review-left"></small></h2>
<div id="review-item" class="center" hidden>
<img id="review-img" class="review-img" alt="">
<p class="review-meta">
<a id="review-name" href="/"></a> <span class="uid" id="review-uid"></span><br>
<span class="hint" id="review-time"></span>
</p>
<label class="source-field"><span data-i18n="source.label"></span>
<input id="review-source" maxlength="40" autocomplete="off" data-i18n-placeholder="source.placeholder">
</label>
<div class="row actions">
<button type="button" id="review-reject" data-i18n="review.reject"></button>
<button type="button" class="primary" id="review-approve" data-i18n="review.approve"></button>
</div>
</div>
<p class="center-text muted" id="review-empty" data-i18n="review.empty" hidden></p>
<p class="muted" id="review-empty" data-i18n="review.empty" hidden></p>
<h2 data-i18n="images.add"></h2>
<p class="hint" data-i18n="images.add_hint"></p>
<label class="source-field"><span data-i18n="source.label"></span>
<input id="add-source" maxlength="40" autocomplete="off" data-i18n-placeholder="source.placeholder">
</label>
<div class="row upload-bar">
<label class="button primary" for="add-file" id="add-pick" data-i18n="images.choose"></label>
<input type="file" id="add-file" accept="image/jpeg,image/png,image/webp" multiple hidden>
<span class="muted" id="add-progress"></span>
</div>
<p class="error" id="add-error" hidden></p>
<h2 data-i18n="images.gallery"></h2>
<div class="row seg">
<button type="button" id="gallery-shown" class="on" aria-pressed="true"></button>
<button type="button" id="gallery-hidden" aria-pressed="false"></button>
</div>
<p class="hint" id="gallery-empty" data-i18n="images.empty" hidden></p>
<div class="meme-grid" id="gallery"></div>
</section>
<section id="view-notices" hidden>
@@ -157,6 +183,7 @@
<div id="user-card" class="profile" hidden>
<img id="user-avatar" class="avatar large" alt="" width="160" height="160">
<h1 id="user-name"></h1>
<button type="button" id="user-edit" data-i18n="user.edit" hidden></button>
<div class="uid" id="user-uid"></div>
<p class="stats" id="user-stats"></p>
<div class="bio" id="user-bio"></div>
@@ -205,7 +232,7 @@
<img id="edit-avatar" class="avatar" alt="" width="96" height="96">
<div>
<label class="button" for="avatar-file" data-i18n="profile.avatar_change"></label>
<input type="file" id="avatar-file" accept="image/*" hidden>
<input type="file" id="avatar-file" accept="image/jpeg,image/png,image/webp" hidden>
<p class="hint" data-i18n="profile.avatar_hint"></p>
</div>
</div>
+9
View File
@@ -351,6 +351,15 @@ body.zhi-on { overflow: hidden; }
}
.sub-status.approved { background: #2f9e5a; color: #fff; }
.sub-status.rejected { background: #6b3a3a; color: #fff; }
.source-field { max-width: 360px; width: 100%; margin-top: 12px; text-align: left; }
#view-images h2 { margin-top: 32px; }
.seg { gap: 8px; margin-bottom: 12px; }
.seg button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.meme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; width: 100%; }
.meme-item { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.meme-item img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: var(--panel-2); }
.meme-item input { padding: 6px 8px; font-size: 14px; }
.meme-item button { padding: 6px 12px; font-size: 14px; }
.review-img { max-width: 100%; max-height: 60vh; border-radius: 12px; background: var(--panel); box-shadow: 0 12px 40px #0008; }
.review-meta { margin: 0; line-height: 1.9; }
#review-name { font-weight: 700; text-decoration: none; }