+ |
+ {gridSpot + 1}
+ P{car.position}
+ |
+
+
+ {portraitSrc != null
+ ?
+ : 无头像}
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+ dispatch(updateDriver({
+ gridSpot,
+ field: "initials",
+ value: deriveInitials(driver.firstName, driver.lastName),
+ }))}
+ >
+ ↻
+
+
+ |
+
+
+ |
+
+
+ |
+
+ dispatch(setDriverTeam({
+ gridSpot,
+ teamId: value as TeamId,
+ }))}
+ title="决定车队配色、队徽和车队旗帜"
+ />
+ |
+
+
+ |
+
+
+ dispatch(updateDriver({
+ gridSpot,
+ field: "yellowTCam",
+ value: event.target.checked,
+ }))}
+ />
+
+ |
+
+
+ dispatch(swapDrivers({ a: gridSpot, b: gridSpot - 1 }))}
+ >
+ ▲
+
+ dispatch(swapDrivers({ a: gridSpot, b: gridSpot + 1 }))}
+ >
+ ▼
+
+ dispatch(resetDriver(gridSpot))}
+ >
+ ↺
+
+
+ |
+
+ );
+}
diff --git a/src/components/Broadcast/DriverEditor/index.ts b/src/components/Broadcast/DriverEditor/index.ts
new file mode 100644
index 0000000..8759007
--- /dev/null
+++ b/src/components/Broadcast/DriverEditor/index.ts
@@ -0,0 +1 @@
+export { DriverEditor } from "./DriverEditor";
diff --git a/src/components/Broadcast/DriverEditor/styles.ts b/src/components/Broadcast/DriverEditor/styles.ts
new file mode 100644
index 0000000..4c64d26
--- /dev/null
+++ b/src/components/Broadcast/DriverEditor/styles.ts
@@ -0,0 +1,207 @@
+import styled from "styled-components/macro";
+
+export const Backdrop = styled.div`
+ position: fixed;
+ inset: 0;
+ z-index: 50;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 2vh 2vw;
+ background-color: rgba(20, 20, 24, 0.55);
+ backdrop-filter: blur(2px);
+`;
+
+export const Panel = styled.div`
+ display: flex;
+ flex-direction: column;
+ width: min(1560px, 96vw);
+ max-height: 90vh;
+ overflow: hidden;
+ background-color: #fbfbfb;
+ border-radius: 0.5em;
+ box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.6);
+ font-family: ${p => p.theme.fonts.basic};
+`;
+
+export const Header = styled.div`
+ display: flex;
+ align-items: center;
+ gap: 1.25em;
+ flex-wrap: wrap;
+ padding: 0.6em 1em;
+ border-bottom: 1px solid ${p => p.theme.colors.lightGrey};
+ background-color: white;
+`;
+
+export const Heading = styled.h2`
+ font-family: ${p => p.theme.fonts.f1Bold};
+ font-size: 1.05em;
+ letter-spacing: 0.02em;
+ text-transform: uppercase;
+ color: ${p => p.theme.colors.darkGrey};
+ white-space: nowrap;
+`;
+
+export const Hint = styled.span`
+ flex: 1;
+ min-width: 16ch;
+ font-size: 0.72em;
+ color: ${p => p.theme.colors.dimGrey};
+`;
+
+export const HeaderActions = styled.div`
+ display: flex;
+ align-items: center;
+ gap: 0.5em;
+`;
+
+export const ActionButton = styled.button`
+ padding: 0.35em 0.7em;
+ border: 1px solid ${p => p.theme.colors.lightGrey};
+ border-radius: 0.25em;
+ background-color: white;
+ color: ${p => p.theme.colors.darkGrey};
+ font-family: ${p => p.theme.fonts.f1Regular};
+ font-size: 0.72em;
+ cursor: pointer;
+ white-space: nowrap;
+
+ &:hover {
+ background-color: ${p => p.theme.colors.faintGrey};
+ }
+`;
+
+export const DangerButton = styled(ActionButton)`
+ color: ${p => p.theme.colors.activeRed};
+ border-color: ${p => p.theme.colors.disabledRed};
+`;
+
+export const CloseButton = styled(ActionButton)`
+ font-size: 0.9em;
+ padding: 0.2em 0.55em;
+ line-height: 1.2;
+`;
+
+export const ScrollArea = styled.div`
+ flex: 1;
+ overflow: auto;
+ padding: 0 1em 1em;
+`;
+
+export const Table = styled.table`
+ width: 100%;
+ border-collapse: collapse;
+ font-size: 0.9em;
+`;
+
+export const Th = styled.th`
+ position: sticky;
+ top: 0;
+ z-index: 1;
+ padding: 0.5em 0.4em;
+ background-color: #fbfbfb;
+ border-bottom: 2px solid ${p => p.theme.colors.lightGrey};
+ text-align: left;
+ font-family: ${p => p.theme.fonts.f1Bold};
+ font-size: 0.68em;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: ${p => p.theme.colors.dimGrey};
+ white-space: nowrap;
+`;
+
+export const Tr = styled.tr`
+ &:nth-child(even) {
+ background-color: rgba(0, 0, 0, 0.022);
+ }
+ &:hover {
+ background-color: rgba(56, 122, 245, 0.07);
+ }
+`;
+
+export const Td = styled.td`
+ padding: 0.3em 0.4em;
+ border-bottom: 1px solid #f0f0f0;
+ vertical-align: middle;
+`;
+
+export const SlotNumber = styled.div`
+ font-family: ${p => p.theme.fonts.f1Bold};
+ font-size: 0.95em;
+ text-align: center;
+ color: ${p => p.theme.colors.darkGrey};
+`;
+
+export const SlotPosition = styled.div`
+ font-family: ${p => p.theme.fonts.f1Regular};
+ font-size: 0.6em;
+ text-align: center;
+ color: ${p => p.theme.colors.dimGrey};
+ white-space: nowrap;
+`;
+
+export const PortraitCell = styled.div`
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 3px;
+ width: 12ch;
+`;
+
+export const PortraitImage = styled.img`
+ height: 42px;
+ width: auto;
+ max-width: 100%;
+ object-fit: contain;
+`;
+
+export const PortraitFallback = styled.div`
+ height: 42px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 0.65em;
+ color: ${p => p.theme.colors.dimGrey};
+`;
+
+export const InitialsCell = styled.div`
+ display: flex;
+ align-items: flex-end;
+ gap: 3px;
+ width: 11ch;
+`;
+
+export const MiniButton = styled.button`
+ padding: 2px 4px;
+ border: 1px solid ${p => p.theme.colors.lightGrey};
+ border-radius: 0.25em;
+ background-color: white;
+ color: ${p => p.theme.colors.dimGrey};
+ font-size: 0.72em;
+ line-height: 1;
+ cursor: pointer;
+
+ &:hover {
+ background-color: ${p => p.theme.colors.faintGrey};
+ color: ${p => p.theme.colors.darkGrey};
+ }
+`;
+
+export const RowActions = styled.div`
+ display: flex;
+ gap: 3px;
+ justify-content: flex-end;
+`;
+
+export const Checkbox = styled.input`
+ width: 1.05em;
+ height: 1.05em;
+ cursor: pointer;
+ accent-color: ${p => p.theme.colors.activeGreen};
+`;
+
+export const CheckboxCell = styled.div`
+ display: flex;
+ justify-content: center;
+`;
diff --git a/src/components/Broadcast/Layout/Layout.tsx b/src/components/Broadcast/Layout/Layout.tsx
index 0e333c8..3d310f3 100644
--- a/src/components/Broadcast/Layout/Layout.tsx
+++ b/src/components/Broadcast/Layout/Layout.tsx
@@ -18,7 +18,7 @@ export function Layout({ headerHeight }: LayoutProps) {