refactor: tweaks to styles

- cuesheet action is ghosted
- mute index in cuesheet milestones
- clarify mirrored state in navigation menu
- align overview contents
This commit is contained in:
Carlos Valente
2025-07-25 13:23:09 +02:00
committed by Carlos Valente
parent 40f8976350
commit 93916653be
9 changed files with 23 additions and 4 deletions
@@ -64,3 +64,8 @@
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
} }
.note {
margin-left: auto;
color: $white-20;
}
@@ -60,6 +60,7 @@ function NavigationMenu({ isOpen, onClose }: NavigationMenuProps) {
<NavigationMenuItem active={mirror} onClick={toggleMirror}> <NavigationMenuItem active={mirror} onClick={toggleMirror}>
Flip Screen Flip Screen
<IoSwapVertical /> <IoSwapVertical />
{mirror && <span className={style.note}>Active</span>}
</NavigationMenuItem> </NavigationMenuItem>
<NavigationMenuItem onClick={handlers.open}>Rename Client</NavigationMenuItem> <NavigationMenuItem onClick={handlers.open}>Rename Client</NavigationMenuItem>
@@ -1,7 +1,10 @@
.column { .column {
height: 100%;
justify-content: center;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: end; align-items: end;
gap: 2px;
} }
.row { .row {
@@ -194,7 +194,7 @@ export function ProgressOverview() {
const current = selectedEventIndex !== null ? selectedEventIndex + 1 : enDash; const current = selectedEventIndex !== null ? selectedEventIndex + 1 : enDash;
const progressText = numEvents ? `${current} of ${numEvents || enDash}` : enDash; const progressText = numEvents ? `${current} of ${numEvents || enDash}` : enDash;
return <TimeColumn label='Progress' value={progressText} />; return <TimeColumn label='Progress' value={progressText} muted={selectedEventIndex === null} />;
} }
export function OffsetOverview() { export function OffsetOverview() {
@@ -13,11 +13,17 @@
&::after { &::after {
content: '\200b'; content: '\200b';
} }
&.muted {
color: $muted-gray;
}
} }
.column { .column {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100%;
justify-content: end;
.label { .label {
line-height: 0.9em; line-height: 0.9em;
@@ -40,7 +40,7 @@ export default function BlockRow({ blockId, colour, hidePast, rowId, rowIndex, t
<td className={style.actionColumn} tabIndex={-1} role='cell'> <td className={style.actionColumn} tabIndex={-1} role='cell'>
<IconButton <IconButton
aria-label='Options' aria-label='Options'
variant='subtle-white' variant='ghosted-white'
size='small' size='small'
onClick={(e) => { onClick={(e) => {
const rect = e.currentTarget.getBoundingClientRect(); const rect = e.currentTarget.getBoundingClientRect();
@@ -93,7 +93,7 @@ export default function EventRow({
<td className={style.actionColumn} tabIndex={-1} role='cell'> <td className={style.actionColumn} tabIndex={-1} role='cell'>
<IconButton <IconButton
aria-label='Options' aria-label='Options'
variant='subtle-white' variant='ghosted-white'
size='small' size='small'
onClick={(e) => { onClick={(e) => {
const rect = e.currentTarget.getBoundingClientRect(); const rect = e.currentTarget.getBoundingClientRect();
@@ -16,4 +16,8 @@
background-color: $gray-1250; background-color: $gray-1250;
border-radius: 2px; border-radius: 2px;
} }
.indexColumn {
color: $label-gray;
}
} }
@@ -52,7 +52,7 @@ export default function MilestoneRow({
<td className={style.actionColumn} tabIndex={-1} role='cell'> <td className={style.actionColumn} tabIndex={-1} role='cell'>
<IconButton <IconButton
aria-label='Options' aria-label='Options'
variant='subtle-white' variant='ghosted-white'
size='small' size='small'
onClick={(e) => { onClick={(e) => {
const rect = e.currentTarget.getBoundingClientRect(); const rect = e.currentTarget.getBoundingClientRect();