mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-19 07:20:21 +02:00
proper fix of range
This commit is contained in:
@@ -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";
|
||||||
|
@@ -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);
|
||||||
|
}
|
||||||
|
@@ -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",
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user