diff --git a/sites/shared/components/workbench/en.yaml b/sites/shared/components/workbench/en.yaml index a1983ab58ef..ef8f43b3518 100644 --- a/sites/shared/components/workbench/en.yaml +++ b/sites/shared/components/workbench/en.yaml @@ -35,6 +35,7 @@ docs: Documentation draft: Draft draftPattern: Draft pattern edit: Edit +editByHand: Edit Manually editCurrentMeasies: Edit Current Measurements editCurrentMeasiesDesc: Changes you make here will not be saved to your measurements sets, and will only affect this pattern. editCurrentMeasiesHeader: Edit Pattern Measurements @@ -47,7 +48,7 @@ exportAsData: Export as data exportForEditing: Export for editing exportForPrinting: Export for printing exportPattern-txt: Export a PDF suitable for your printer, or download this pattern in a variety of formats -exportPattern: Export pattern +exportPattern: Export Pattern fit: Fit frontPockets: Front pockets generatePdf: Generate print-ready PDF @@ -80,9 +81,11 @@ partTransfoYes: Show buttons partTransfoYesDesc: Include these buttons on the pattern output (they will not be printed) pathInfo: Path info patternBookmarkCreated: Pattern bookmark created +patternEditor: Pattern Editor patternInspector: Pattern Inspector -patternLogs: Pattern logs +patternLogs: Pattern Logs patternSaved: Pattern saved +patternTests: Pattern Tests pockets: Pockets printLayout: Print Layout printSettings.d: Configure your pattern so you can print it just the way you like it. Includes page size & orientation, margins, and more. diff --git a/sites/shared/components/workbench/header.mjs b/sites/shared/components/workbench/header.mjs index 32a6626fcb8..5db9ef5a7cb 100644 --- a/sites/shared/components/workbench/header.mjs +++ b/sites/shared/components/workbench/header.mjs @@ -1,4 +1,5 @@ // __SDEFILE__ - This file is a dependency for the stand-alone environment +import { controlLevels } from 'shared/config/freesewing.config.mjs' // Hooks import { useState } from 'react' import { useTranslation } from 'next-i18next' @@ -44,12 +45,14 @@ export const NavButton = ({ children, onClick = false, active = false, - extraClasses = 'lg:bg-neutral lg:text-neutral-content lg:hover:bg-secondary lg:hover:text-secondary-content hover:text-secondary', + extraClasses = 'lg:hover:bg-secondary lg:hover:text-secondary-content', }) => { const className = `w-full flex flex-row items-center px-4 py-2 ${extraClasses} ${ - active ? 'text-secondary' : '' + active + ? 'font-bold lg:font-normal bg-secondary bg-opacity-10 lg:bg-secondary lg:text-secondary-content lg:bg-opacity-50' + : 'lg:bg-neutral lg:text-neutral-content' }` - const span = {label} + const span = {label} return onClick ? (