Skip to content

Commit

Permalink
[minor changes] Fixes custom fields menu and color picker positions
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecmart committed Jul 5, 2024
1 parent 0086147 commit a4695f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/protoflow/src/fields/ColorFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default ({ nodeData = {}, node, item }) => {
width: "28px", height: "28px", cursor: 'pointer',
backgroundColor: getColorPreview(),
borderRadius: 4, zIndex: 10, position: 'absolute', marginLeft: '5px',
border: !value ? '1px solid ' + textColor : '', top: '13px'
border: !value ? '1px solid ' + textColor : '', top: '-13px'
}}
>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/protoflow/src/fields/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const CustomField = ({ label, input, menuActions = undefined }: any) => {
<Popover.Trigger>
<div
onClick={() => setMenuOpened(true)}
style={{ padding: '4px', justifyContent: 'center', cursor: 'pointer', position: 'absolute', right: 0, alignSelf: 'center', zIndex: 10 }}
style={{ padding: '4px', justifyContent: 'center', cursor: 'pointer', position: 'absolute', right: -10, top: 2, alignSelf: 'center', zIndex: 10 }}
>
<MoreVertical size={16} color={useTheme('textColor')} />
</div>
Expand Down

0 comments on commit a4695f8

Please sign in to comment.