Replace the control bar's stroke weight with a full stroke properties popover (#4145)

* Replace the control bar's stroke weight with a full stroke properties popover

* Code review
This commit is contained in:
Keavon Chambers
2026-05-13 03:58:12 -07:00
committed by GitHub
parent 629a1f4b4c
commit 4d5dce976e
14 changed files with 609 additions and 169 deletions

View File

@@ -23,6 +23,7 @@
export let tableAlign = false;
// Sizing
export let minWidth = 0;
export let maxWidth = 0;
export let minWidthCharacters = 0;
// Tooltips
export let tooltipLabel: string | undefined = undefined;
@@ -77,7 +78,8 @@
class:multiline
class:center-align={centerAlign}
class:table-align={tableAlign}
style:min-width={minWidthCharacters ? `${minWidthCharacters}ch` : minWidth || undefined}
style:min-width={minWidthCharacters ? `${minWidthCharacters}ch` : minWidth > 0 ? `${minWidth}px` : undefined}
style:max-width={maxWidth > 0 ? `${maxWidth}px` : undefined}
style={`${styleName} ${extraStyles}`.trim() || undefined}
data-tooltip-label={tooltipLabel}
data-tooltip-description={tooltipDescription}