fix: make nightdrive signage reliable and legible
This commit is contained in:
@@ -6,7 +6,7 @@ import type { JourneySnapshot } from "@/journey/types";
|
||||
const props = defineProps<{
|
||||
items: ReadonlyArray<{ id: SectionId; label: string }>;
|
||||
journey: JourneySnapshot;
|
||||
onSectionLinkClick: (event: MouseEvent) => void;
|
||||
onSectionLinkClick: (event: MouseEvent, requestSign?: boolean) => void;
|
||||
}>();
|
||||
|
||||
const navigationLabels: Readonly<Record<SectionId, string>> = {
|
||||
@@ -42,7 +42,7 @@ onBeforeUnmount(() => {
|
||||
});
|
||||
|
||||
const navigate = (event: MouseEvent): void => {
|
||||
props.onSectionLinkClick(event);
|
||||
props.onSectionLinkClick(event, true);
|
||||
if (window.matchMedia("(max-width: 767px)").matches)
|
||||
disclosure.value?.removeAttribute("open");
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user