proper fix of range

This commit is contained in:
Ryan Di
2025-08-26 23:07:21 +10:00
parent b7c8abe0a1
commit 6448c4b6a1
4 changed files with 15 additions and 4 deletions

View File

@@ -131,6 +131,7 @@ export const CLASSES = {
ZOOM_ACTIONS: "zoom-actions", ZOOM_ACTIONS: "zoom-actions",
SEARCH_MENU_INPUT_WRAPPER: "layer-ui__search-inputWrapper", SEARCH_MENU_INPUT_WRAPPER: "layer-ui__search-inputWrapper",
CONVERT_ELEMENT_TYPE_POPUP: "ConvertElementTypePopup", CONVERT_ELEMENT_TYPE_POPUP: "ConvertElementTypePopup",
SHAPE_ACTIONS_THEME_SCOPE: "shape-actions-theme-scope",
}; };
export const CJK_HAND_DRAWN_FALLBACK_FONT = "Xiaolai"; export const CJK_HAND_DRAWN_FALLBACK_FONT = "Xiaolai";

View File

@@ -195,3 +195,13 @@
} }
} }
} }
.shape-actions-theme-scope {
--button-border: transparent;
--button-bg: var(--color-surface-mid);
}
:root.theme--dark .shape-actions-theme-scope {
--button-hover-bg: #363541;
--button-bg: var(--color-surface-high);
}

View File

@@ -393,6 +393,7 @@ export const CompactShapeActions = ({
</Popover.Trigger> </Popover.Trigger>
{strokePopoverOpen && ( {strokePopoverOpen && (
<PropertiesPopover <PropertiesPopover
className={CLASSES.SHAPE_ACTIONS_THEME_SCOPE}
container={container} container={container}
style={{ maxWidth: "13rem" }} style={{ maxWidth: "13rem" }}
onClose={() => setStrokePopoverOpen(false)} onClose={() => setStrokePopoverOpen(false)}
@@ -519,6 +520,7 @@ export const CompactShapeActions = ({
</Popover.Trigger> </Popover.Trigger>
{appState.openPopup === "textAlign" && ( {appState.openPopup === "textAlign" && (
<PropertiesPopover <PropertiesPopover
className={CLASSES.SHAPE_ACTIONS_THEME_SCOPE}
container={container} container={container}
style={{ maxWidth: "13rem" }} style={{ maxWidth: "13rem" }}
onClose={() => setAppState({ openPopup: null })} onClose={() => setAppState({ openPopup: null })}
@@ -572,6 +574,7 @@ export const CompactShapeActions = ({
</Popover.Trigger> </Popover.Trigger>
{otherActionsPopoverOpen && ( {otherActionsPopoverOpen && (
<PropertiesPopover <PropertiesPopover
className={CLASSES.SHAPE_ACTIONS_THEME_SCOPE}
container={container} container={container}
style={{ style={{
maxWidth: "12rem", maxWidth: "12rem",

View File

@@ -243,10 +243,7 @@ const LayerUI = ({
> >
{isTablet ? ( {isTablet ? (
<Island <Island
className={clsx( className={clsx("compact-shape-actions-island")}
// CLASSES.SHAPE_ACTIONS_MENU,
"compact-shape-actions-island",
)}
padding={0} padding={0}
style={{ style={{
// we want to make sure this doesn't overflow so subtracting the // we want to make sure this doesn't overflow so subtracting the