-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
128 additions
and
50 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
src/studio/src/designer/frontend/packages/ux-editor/src/components/DragHandle.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.handle { | ||
background-color: #00000010; | ||
border-width: 0; | ||
border-top-left-radius: 5px; | ||
border-bottom-left-radius: 5px; | ||
width: 25px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
cursor: move; | ||
height: 100%; | ||
} | ||
|
||
.points { | ||
--point-size: 3px; | ||
display: grid; | ||
grid-template: var(--point-size) / var(--point-size) var(--point-size); | ||
gap: var(--point-size); | ||
margin: auto; | ||
} | ||
|
||
.points span { | ||
background: #00000040; | ||
width: var(--point-size); | ||
height: var(--point-size); | ||
border-radius: 50%; | ||
} |
15 changes: 15 additions & 0 deletions
15
src/studio/src/designer/frontend/packages/ux-editor/src/components/DragHandle.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
import classes from './DragHandle.module.css'; | ||
|
||
export const DragHandle = () => ( | ||
<div className={classes.handle}> | ||
<span className={classes.points}> | ||
<span/> | ||
<span/> | ||
<span/> | ||
<span/> | ||
<span/> | ||
<span/> | ||
</span> | ||
</div> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 22 additions & 5 deletions
27
src/studio/src/designer/frontend/packages/ux-editor/src/containers/EditContainer.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters