Changes before error encountered

Co-authored-by: h <57948770+h@users.noreply.github.com>
Agent-Logs-Url: https://github.com/h/CarReservation/sessions/a42d4e36-a3cf-4ff7-b1cb-f076e601b1b8
This commit is contained in:
copilot-swe-agent[bot]
2026-03-22 04:25:00 +00:00
parent 6f23f9b6e9
commit 6864026497
7 changed files with 107 additions and 24 deletions

View File

@@ -7,7 +7,7 @@ import ReservationModal from './ReservationModal.jsx';
import styles from './ScheduleView.module.css';
const CELL_WIDTH = 52; // px per day column
const ROW_HEIGHT = 52; // px per car row
const ROW_HEIGHT = 64; // px per car row
const LABEL_WIDTH = 140; // px for car name column
const HEADER_HEIGHT = 72; // px for the date header row
const DAYS_SHOWN = 21; // number of days to show
@@ -443,13 +443,15 @@ export default function ScheduleView({ reloadKey = 0 }) {
title={car.description || car.name}
>
<span className={styles.carDot} style={{ background: color.border }} />
<span className={styles.carName}>{car.name}</span>
<span className={styles.carIcons}>
{car.has_etc ? <span title="ETC あり">🛣</span> : null}
{car.tire_type === 'スタットレス' ? <span title="スタットレスタイヤ"></span> : null}
{isInspectionExpirySoon(car.inspection_expiry) ? (
<span title={`車検満了日: ${car.inspection_expiry}(まもなく期限切れ)`}></span>
) : null}
<span className={styles.carLabelContent}>
<span className={styles.carName}>{car.name}</span>
<span className={styles.carBadges}>
{car.has_etc ? <span className={styles.badgeEtc}>ETC</span> : null}
{car.tire_type === 'スタッドレス' ? <span className={styles.badgeStudless}>スタッドレス</span> : null}
{isInspectionExpirySoon(car.inspection_expiry) ? (
<span className={styles.badgeWarn} title={`車検満了日: ${car.inspection_expiry}(まもなく期限切れ)`}>車検</span>
) : null}
</span>
</span>
</div>