From ab23508645e6a3dcd6199af61044b1c97bf42243 Mon Sep 17 00:00:00 2001 From: dal4segno Date: Tue, 18 Aug 2026 17:19:40 +0900 Subject: [PATCH] feat: refine desktop layouts and data pages --- src/lib/components/AnalysisResultView.svelte | 16 +- src/routes/+layout.svelte | 12 +- src/routes/+page.svelte | 31 +- src/routes/analysis/+page.svelte | 54 ++-- src/routes/combination/+page.svelte | 76 +++-- src/routes/data/+page.svelte | 306 +++++++++++-------- 6 files changed, 295 insertions(+), 200 deletions(-) diff --git a/src/lib/components/AnalysisResultView.svelte b/src/lib/components/AnalysisResultView.svelte index c91ede2..9514920 100644 --- a/src/lib/components/AnalysisResultView.svelte +++ b/src/lib/components/AnalysisResultView.svelte @@ -168,25 +168,25 @@ .order-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 50px; padding: 8px 12px; border: 1px solid #2d3440; border-radius: 10px; background: #12161c; } .slot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #171019; background: #e98ab2; font-weight: 900; } .order-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } - .reduction { padding: 6px 8px; border-radius: 7px; color: #b9c1cd; background: #252c36; font-size: 11px; } + .reduction { padding: 6px 8px; border-radius: 7px; color: #b9c1cd; background: #252c36; font-size: 13px; } .score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; } .score-summary { display: grid; gap: 7px; padding: 16px; border-radius: 10px; background: #22202a; } - .score-summary span { color: #a9b1be; font-size: 12px; } + .score-summary span { color: #a9b1be; font-size: 14px; } .score-summary strong { color: #f2a3c4; font-size: 20px; } - .score-summary small { color: #90d8ae; font-size: 10px; font-weight: 800; } + .score-summary small { color: #90d8ae; font-size: 12px; font-weight: 800; } .skill-timeline { margin-top: 22px; padding-top: 20px; border-top: 1px solid #2b313c; } .timeline-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 14px; } .timeline-heading h3 { margin: 0; color: #e8ebf1; font-size: 16px; } - .timeline-heading p { margin: 6px 0 0; color: #838d9d; font-size: 11px; } - .timeline-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; color: #99a2b1; font-size: 10px; } + .timeline-heading p { margin: 6px 0 0; color: #838d9d; font-size: 13px; } + .timeline-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; color: #99a2b1; font-size: 12px; } .timeline-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; } .timeline-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; } .timeline-scroll { overflow-x: auto; border: 1px solid #2c3440; border-radius: 11px; background: #10141a; scrollbar-width: thin; } .timeline-canvas { min-width: 100%; padding: 12px 12px 8px 0; } .timeline-row { display: flex; min-height: 36px; } .timeline-row + .timeline-row { border-top: 1px solid rgb(255 255 255 / 5%); } - .lane-label { position: sticky; left: 0; z-index: 4; display: flex; align-items: center; gap: 7px; flex: 0 0 144px; min-width: 144px; padding: 0 10px 0 12px; overflow: hidden; color: #bac2ce; background: #141920; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; } - .lane-label small { display: grid; place-items: center; flex: none; width: 19px; height: 19px; border: 1px solid color-mix(in srgb, var(--member-color) 65%, transparent); border-radius: 5px; color: var(--member-color); background: color-mix(in srgb, var(--member-color) 12%, transparent); font-size: 9px; } + .lane-label { position: sticky; left: 0; z-index: 4; display: flex; align-items: center; gap: 7px; flex: 0 0 144px; min-width: 144px; padding: 0 10px 0 12px; overflow: hidden; color: #bac2ce; background: #141920; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; } + .lane-label small { display: grid; place-items: center; flex: none; width: 19px; height: 19px; border: 1px solid color-mix(in srgb, var(--member-color) 65%, transparent); border-radius: 5px; color: var(--member-color); background: color-mix(in srgb, var(--member-color) 12%, transparent); font-size: 11px; } .timeline-track { position: relative; flex: none; } .timeline-track::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(255 255 255 / 9%) 1px, transparent 1px); background-size: var(--time-grid-step, 10%) 100%; pointer-events: none; } .note-row { min-height: 68px; } @@ -202,7 +202,7 @@ .axis-row { min-height: 24px; border-top: 1px solid #343c49 !important; } .time-axis { height: 24px; } .time-axis::before { display: none; } - .time-axis span { position: absolute; top: 5px; color: #747f90; font-size: 9px; transform: translateX(-50%); white-space: nowrap; } + .time-axis span { position: absolute; top: 5px; color: #747f90; font-size: 11px; transform: translateX(-50%); white-space: nowrap; } .time-axis span:first-child { transform: none; } .time-axis span:last-child { transform: translateX(-100%); } @media (max-width: 700px) { diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 64206b9..4441837 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -17,6 +17,11 @@ diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 37b1b95..010a44d 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -623,7 +623,7 @@ } main { - width: min(1120px, calc(100% - 40px)); + width: min(var(--page-max-width), calc(100% - var(--page-gutter))); margin: 0 auto; padding: 36px 0 80px; } @@ -717,7 +717,7 @@ color: #566074; background: #fff; font: inherit; - font-size: 12px; + font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color 150ms ease, color 150ms ease, background 150ms ease; @@ -764,7 +764,7 @@ margin-bottom: 10px; padding: 0; color: #737d90; - font-size: 12px; + font-size: 14px; font-weight: 750; } @@ -821,7 +821,7 @@ border-radius: 6px; color: transparent; background: #fff; - font-size: 11px; + font-size: 13px; line-height: 1; } @@ -848,7 +848,7 @@ .list-header, .card-summary { display: grid; - grid-template-columns: 72px 84px 150px minmax(0, 1fr) 116px 36px; + grid-template-columns: clamp(72px, 5vw, 88px) clamp(84px, 6vw, 104px) clamp(150px, 11vw, 184px) minmax(280px, 1fr) clamp(116px, 9vw, 144px) 40px; align-items: center; } @@ -978,7 +978,7 @@ color: #7a8394; background: transparent; font: inherit; - font-size: 11px; + font-size: 13px; font-weight: 750; line-height: 1; cursor: pointer; @@ -1023,7 +1023,7 @@ place-items: center; border-radius: 8px; color: #fff; - font-size: 11px; + font-size: 13px; font-weight: 850; } @@ -1039,7 +1039,7 @@ border-radius: 999px; color: #3165c9; background: #edf3ff; - font-size: 10px; + font-size: 12px; font-weight: 850; } @@ -1097,7 +1097,7 @@ .skill-spec dt { color: #7b8495; - font-size: 10px; + font-size: 12px; font-weight: 700; } @@ -1133,7 +1133,7 @@ .effect-label { margin: 0 0 4px; color: #8a93a4; - font-size: 10px; + font-size: 12px; font-weight: 800; } @@ -1311,7 +1311,7 @@ border-radius: 999px; color: #287f91; background: #e8f8fb; - font-size: 10px; + font-size: 12px; font-weight: 800; } @@ -1589,6 +1589,13 @@ color: #778193; } + @media (max-width: 1100px) { + .list-header, + .card-summary { + grid-template-columns: 72px 84px 150px minmax(0, 1fr) 116px 36px; + } + } + @media (max-width: 680px) { main { width: min(100% - 24px, 1120px); @@ -1661,7 +1668,7 @@ display: block; margin-bottom: 7px; color: #9299a8; - font-size: 11px; + font-size: 13px; font-weight: 700; } diff --git a/src/routes/analysis/+page.svelte b/src/routes/analysis/+page.svelte index 3b68988..5745828 100644 --- a/src/routes/analysis/+page.svelte +++ b/src/routes/analysis/+page.svelte @@ -432,6 +432,7 @@ @@ -617,46 +618,47 @@