Skip to content

feat(page-element): allow a fixed aspect ratio for visualizations#93

Draft
BatLeDev wants to merge 1 commit into
masterfrom
feat-visu-fixed-aspect-ratio
Draft

feat(page-element): allow a fixed aspect ratio for visualizations#93
BatLeDev wants to merge 1 commit into
masterfrom
feat-visu-fixed-aspect-ratio

Conversation

@BatLeDev

@BatLeDev BatLeDev commented Jul 1, 2026

Copy link
Copy Markdown
Member
  • Add a ratio field (free text with 16/9, 4/3, 1/1, 3/2, 21/9 suggestions, default auto) to keep the current responsive ratio or fix it to a constant value.
  • Add an optional maxHeight field, shown only when a fixed ratio is set.
  • d-frame only computes its height from its own measured width, so it can't cap itself to a max height without cropping; the visualization is now wrapped in a container that caps the width instead (maxHeight × ratio), shrinking it horizontally rather than cropping it.
  • Renamed the "Hauteur optimale avec scroll" display mode label to "Aspect ratio" (cosmetic only, stored value unchanged).

d-frame only derives its height from its own measured width, so it
cannot cap itself to a max height without cropping. The wrapping
container now caps the width instead (maxHeight × ratio), shrinking
the visualization horizontally rather than cropping it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant