mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-19 21:04:33 +08:00
🚸 Place button settings floating button on top right
This commit is contained in:
parent
997c45533f
commit
786accdf24
@ -139,12 +139,13 @@ export const ButtonsItemNode = ({ item, indices, isMouseOver }: Props) => {
|
||||
/>
|
||||
</Editable>
|
||||
<SlideFade
|
||||
offsetY="0px"
|
||||
offsetX="-10px"
|
||||
offsetY="5px"
|
||||
offsetX="-5px"
|
||||
in={isMouseOver}
|
||||
style={{
|
||||
position: "absolute",
|
||||
left: "-40px",
|
||||
right: "-0.25rem",
|
||||
top: "-0.25rem",
|
||||
zIndex: 3,
|
||||
}}
|
||||
unmountOnExit
|
||||
@ -154,7 +155,7 @@ export const ButtonsItemNode = ({ item, indices, isMouseOver }: Props) => {
|
||||
aria-label={t("blocks.inputs.button.openSettings.ariaLabel")}
|
||||
icon={<SettingsIcon />}
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
size="xs"
|
||||
shadow="md"
|
||||
onClick={() => setOpenedNodeId(item.id)}
|
||||
/>
|
||||
|
||||
@ -267,13 +267,13 @@ export const CardsItemNode = ({
|
||||
</Stack>
|
||||
|
||||
<SlideFade
|
||||
offsetY="0px"
|
||||
offsetX="-10px"
|
||||
offsetY="5px"
|
||||
offsetX="-5px"
|
||||
in={isMouseOver}
|
||||
style={{
|
||||
position: "absolute",
|
||||
right: "-10px",
|
||||
top: "-10px",
|
||||
right: "-0.25rem",
|
||||
top: "-0.25rem",
|
||||
zIndex: 3,
|
||||
}}
|
||||
unmountOnExit
|
||||
@ -283,7 +283,7 @@ export const CardsItemNode = ({
|
||||
aria-label={t("blocks.inputs.button.openSettings.ariaLabel")}
|
||||
icon={<SettingsIcon />}
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
size="xs"
|
||||
shadow="md"
|
||||
onClick={() => setOpenedNodeId(item.id)}
|
||||
/>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user