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;
overflow-y: auto;
}
.note {
margin-left: auto;
color: $white-20;
}
@@ -60,6 +60,7 @@ function NavigationMenu({ isOpen, onClose }: NavigationMenuProps) {
<NavigationMenuItem active={mirror} onClick={toggleMirror}>
Flip Screen
<IoSwapVertical />
{mirror && <span className={style.note}>Active</span>}
</NavigationMenuItem>
<NavigationMenuItem onClick={handlers.open}>Rename Client</NavigationMenuItem>
@@ -1,7 +1,10 @@
.column {
height: 100%;
justify-content: center;
display: flex;
flex-direction: column;
align-items: end;
gap: 2px;
}
.row {
@@ -194,7 +194,7 @@ export function ProgressOverview() {
const current = selectedEventIndex !== null ? selectedEventIndex + 1 : 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() {
@@ -13,11 +13,17 @@
&::after {
content: '\200b';
}
&.muted {
color: $muted-gray;
}
}
.column {
display: flex;
flex-direction: column;
height: 100%;
justify-content: end;
.label {
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'>
<IconButton
aria-label='Options'
variant='subtle-white'
variant='ghosted-white'
size='small'
onClick={(e) => {
const rect = e.currentTarget.getBoundingClientRect();
@@ -93,7 +93,7 @@ export default function EventRow({
<td className={style.actionColumn} tabIndex={-1} role='cell'>
<IconButton
aria-label='Options'
variant='subtle-white'
variant='ghosted-white'
size='small'
onClick={(e) => {
const rect = e.currentTarget.getBoundingClientRect();
@@ -16,4 +16,8 @@
background-color: $gray-1250;
border-radius: 2px;
}
.indexColumn {
color: $label-gray;
}
}
@@ -52,7 +52,7 @@ export default function MilestoneRow({
<td className={style.actionColumn} tabIndex={-1} role='cell'>
<IconButton
aria-label='Options'
variant='subtle-white'
variant='ghosted-white'
size='small'
onClick={(e) => {
const rect = e.currentTarget.getBoundingClientRect();