fix: 正确处理“我追的合集 / 收藏夹”中的收藏夹条目,以及一些样式、文本调整 (#553)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2025-12-05 16:38:10 +08:00
committed by GitHub
parent f37d9af678
commit b5ef76b0ed
14 changed files with 277 additions and 242 deletions

View File

@@ -1,5 +1,16 @@
import { clsx, type ClassValue } from 'clsx';
import { twMerge } from 'tailwind-merge';
import type { Followed } from './types';
export function getFollowedKey(followed: Followed): number {
if (followed.type == 'favorite') {
return followed.fid;
} else if (followed.type == 'collection') {
return followed.sid;
} else {
return followed.mid;
}
}
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));