diff --git a/frontend/src/components/ElementSettings/CarouselSettingsSectionCompact.tsx b/frontend/src/components/ElementSettings/CarouselSettingsSectionCompact.tsx index 4ab2669..22eba7e 100644 --- a/frontend/src/components/ElementSettings/CarouselSettingsSectionCompact.tsx +++ b/frontend/src/components/ElementSettings/CarouselSettingsSectionCompact.tsx @@ -109,7 +109,7 @@ const CarouselSettingsSectionCompact: React.FC< step='0.25' min='0' className='w-1/2 rounded border border-gray-300 px-2 py-1 text-xs' - placeholder='W (vw)' + placeholder='W (%)' value={carouselPrevWidth} onChange={(e) => onUpdateElement({ carouselPrevWidth: e.target.value }) @@ -120,7 +120,7 @@ const CarouselSettingsSectionCompact: React.FC< step='0.25' min='0' className='w-1/2 rounded border border-gray-300 px-2 py-1 text-xs' - placeholder='H (vh)' + placeholder='H (%)' value={carouselPrevHeight} onChange={(e) => onUpdateElement({ carouselPrevHeight: e.target.value }) @@ -156,7 +156,7 @@ const CarouselSettingsSectionCompact: React.FC< step='0.25' min='0' className='w-1/2 rounded border border-gray-300 px-2 py-1 text-xs' - placeholder='W (vw)' + placeholder='W (%)' value={carouselNextWidth} onChange={(e) => onUpdateElement({ carouselNextWidth: e.target.value }) @@ -167,7 +167,7 @@ const CarouselSettingsSectionCompact: React.FC< step='0.25' min='0' className='w-1/2 rounded border border-gray-300 px-2 py-1 text-xs' - placeholder='H (vh)' + placeholder='H (%)' value={carouselNextHeight} onChange={(e) => onUpdateElement({ carouselNextHeight: e.target.value }) diff --git a/frontend/src/components/ElementSettings/CommonSettingsSection.tsx b/frontend/src/components/ElementSettings/CommonSettingsSection.tsx index b6e1722..59f8c9c 100644 --- a/frontend/src/components/ElementSettings/CommonSettingsSection.tsx +++ b/frontend/src/components/ElementSettings/CommonSettingsSection.tsx @@ -32,13 +32,13 @@ const CommonSettingsSection: React.FC = ({ {showPosition && (
- + onChange('xPercent', event.target.value)} /> - + onChange('yPercent', event.target.value)} diff --git a/frontend/src/components/ElementSettings/GalleryCarouselSettingsSectionCompact.tsx b/frontend/src/components/ElementSettings/GalleryCarouselSettingsSectionCompact.tsx index 0a213b4..b1e5852 100644 --- a/frontend/src/components/ElementSettings/GalleryCarouselSettingsSectionCompact.tsx +++ b/frontend/src/components/ElementSettings/GalleryCarouselSettingsSectionCompact.tsx @@ -86,7 +86,7 @@ const GalleryCarouselSettingsSectionCompact: React.FC< step='0.25' min='0' className='w-1/2 rounded border border-gray-300 px-2 py-1 text-xs' - placeholder='W (rem)' + placeholder='W (%)' value={prevWidth} onChange={(event) => onUpdateElement({ @@ -99,7 +99,7 @@ const GalleryCarouselSettingsSectionCompact: React.FC< step='0.25' min='0' className='w-1/2 rounded border border-gray-300 px-2 py-1 text-xs' - placeholder='H (rem)' + placeholder='H (%)' value={prevHeight} onChange={(event) => onUpdateElement({ @@ -137,7 +137,7 @@ const GalleryCarouselSettingsSectionCompact: React.FC< step='0.25' min='0' className='w-1/2 rounded border border-gray-300 px-2 py-1 text-xs' - placeholder='W (rem)' + placeholder='W (%)' value={nextWidth} onChange={(event) => onUpdateElement({ @@ -150,7 +150,7 @@ const GalleryCarouselSettingsSectionCompact: React.FC< step='0.25' min='0' className='w-1/2 rounded border border-gray-300 px-2 py-1 text-xs' - placeholder='H (rem)' + placeholder='H (%)' value={nextHeight} onChange={(event) => onUpdateElement({ @@ -188,7 +188,7 @@ const GalleryCarouselSettingsSectionCompact: React.FC< step='0.25' min='0' className='w-1/2 rounded border border-gray-300 px-2 py-1 text-xs' - placeholder='W (rem)' + placeholder='W (%)' value={backWidth} onChange={(event) => onUpdateElement({ @@ -201,7 +201,7 @@ const GalleryCarouselSettingsSectionCompact: React.FC< step='0.25' min='0' className='w-1/2 rounded border border-gray-300 px-2 py-1 text-xs' - placeholder='H (rem)' + placeholder='H (%)' value={backHeight} onChange={(event) => onUpdateElement({ diff --git a/frontend/src/components/ElementSettings/GallerySectionStyleInputs.tsx b/frontend/src/components/ElementSettings/GallerySectionStyleInputs.tsx index 4a1afb4..b1dd150 100644 --- a/frontend/src/components/ElementSettings/GallerySectionStyleInputs.tsx +++ b/frontend/src/components/ElementSettings/GallerySectionStyleInputs.tsx @@ -272,7 +272,7 @@ const GallerySectionStyleInputs: React.FC = ({ className='w-full rounded border border-gray-300 px-2 py-1 text-xs' value={values[`${prefix}MaxHeight`] || ''} onChange={(e) => onChange(`${prefix}MaxHeight`, e.target.value)} - placeholder='400px, 50vh' + placeholder='400px, 50%' />
diff --git a/frontend/src/components/ElementSettings/StyleSettingsSection.tsx b/frontend/src/components/ElementSettings/StyleSettingsSection.tsx index bcc99c4..ced5605 100644 --- a/frontend/src/components/ElementSettings/StyleSettingsSection.tsx +++ b/frontend/src/components/ElementSettings/StyleSettingsSection.tsx @@ -17,11 +17,10 @@ const StyleSettingsSection: React.FC = ({

View & Stylization

- Fill numbers only: width is saved as vw, height as vh, border and radius - as px. + Dimensions are saved as % of canvas, border and radius as px.

- + = ({ placeholder='e.g. 24' /> - + = ({ placeholder='e.g. 8' /> - + = ({ onChange={(event) => onChange('minWidth', event.target.value)} /> - + = ({ onChange={(event) => onChange('maxWidth', event.target.value)} /> - + = ({ onChange={(event) => onChange('minHeight', event.target.value)} /> - + = ({ return (

- Numbers only: width=vw, height=vh, border/radius=px + Dimensions = % of canvas, border/radius = px

= ({
= ({
= ({
= ({
= ({