ba-cafe

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 5b55e33b20b17f09f0b8ca7b0a8ab7fb6bac866e
parent a7bb3140bab253616bda7d3947ee10c385626a22
Author: Sunny <122193933+Sunny-JP@users.noreply.github.com>
Date:   Wed, 10 Jun 2026 01:02:36 +0900

Merge pull request #66 from Sunny-JP/v5

V5
Diffstat:
Msrc/app/globals.css | 20++++++++++++++++----
Msrc/components/BondDashboard.tsx | 7++++++-
Msrc/components/pages.tsx | 4+++-
Msrc/lib/bondData.ts | 10+++++++++-
4 files changed, 34 insertions(+), 7 deletions(-)

diff --git a/src/app/globals.css b/src/app/globals.css @@ -72,15 +72,29 @@ -ms-overflow-style: none !important; scrollbar-width: none !important; } - *::-webkit-scrollbar { display: none !important; } +.show-scrollbar { + -ms-overflow-style: auto !important; + scrollbar-width: auto !important; +} +.show-scrollbar::-webkit-scrollbar { + display: block !important; + width: 4px !important; +} +.show-scrollbar::-webkit-scrollbar-thumb { + background-color: var(--muted-foreground); + border-radius: 9999px; + opacity: 0.5; +} +.show-scrollbar::-webkit-scrollbar-track { + background: transparent; +} html { font-size: clamp(0.875rem, 0.5rem + 1vw, 1.125rem); } - html, body, #__next { @@ -89,7 +103,6 @@ body, height: var(--svh); min-height: var(--svh); } - body { background-color: var(--background); color: var(--foreground); @@ -97,7 +110,6 @@ body { font-weight: 700; padding-bottom: calc(var(--bottom-nav-height)); } - header { background-color: var(--background); font-size: 1.35rem; diff --git a/src/components/BondDashboard.tsx b/src/components/BondDashboard.tsx @@ -315,7 +315,12 @@ export default function BondDashboard({ localStorage.setItem('last_selected_char_id', selectedCharId); const charHistory = bondHistory .filter(h => h.char_key === selectedCharId) - .sort((a, b) => b.recorded_at.localeCompare(a.recorded_at)); + .sort((a, b) => { + const dateCompare = b.recorded_at.localeCompare(a.recorded_at); + if (dateCompare !== 0) return dateCompare; + return b.bond_level - a.bond_level; + }); + if (charHistory.length > 0) { setInputLevel(Math.min(100, charHistory[0].bond_level + 1)); } else { diff --git a/src/components/pages.tsx b/src/components/pages.tsx @@ -284,6 +284,8 @@ export const OVERLAY_CONTENTS: Record<string, { title: string; body: React.React title: "運営者情報など", body: (() => { const updateLogs = [ + { date: '2026-06-10', content: '新規追加: ナグサ(水着)' }, + { date: '2026-06-10', content: '贈物修正: エリカ' }, { date: '2026-06-07', content: '絆ランク記録機能追加' }, { date: '2026-02-08', content: '初回リリース' }, ]; @@ -313,7 +315,7 @@ export const OVERLAY_CONTENTS: Record<string, { title: string; body: React.React </div> <div className="flex flex-col gap-2"> <h3 className="font-bold text-foreground border-b border-muted pb-1">変更履歴</h3> - <div className="bg-background/50 rounded-md p-1.5 max-h-48 overflow-y-auto space-y-2 text-sm"> + <div className="show-scrollbar bg-background/50 rounded-md p-1.5 max-h-48 overflow-y-auto space-y-2 text-sm"> {updateLogs.map((log, index) => ( <div key={index} className="flex gap-3"> <span className="shrink-0">{log.date}</span> diff --git a/src/lib/bondData.ts b/src/lib/bondData.ts @@ -638,6 +638,8 @@ export const CHARACTER_LIST = [ '『銃 可愛い 青春』': 'nb', '跳躍探偵ウサギ~霧に包まれた温泉での滑落~': 'nb', '古典の詩集': 'nb', + '刺繍付きのハンカチ': 'nb', + '百科事典': 'nb', } as Record<string, keyof typeof GIFT_EXP> }, { @@ -1804,6 +1806,12 @@ export const CHARACTER_LIST = [ } as Record<string, keyof typeof GIFT_EXP> }, { + id: 'nagusa_swimsuit', + name: 'ナグサ(水着)', + giftRatings: { + } as Record<string, keyof typeof GIFT_EXP> + }, + { id: 'natsu', name: 'ナツ', giftRatings: { @@ -2101,7 +2109,7 @@ export const CHARACTER_LIST = [ } as Record<string, keyof typeof GIFT_EXP> }, { - id: 'ハルカ_ドレス', + id: 'haruka_dress', name: 'ハルカ(ドレス)', giftRatings: { '最高級の楓の盆栽': 'ss',