Skip to content

Commit

Permalink
style: fix grabbing style
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov committed Dec 18, 2023
1 parent 7687e87 commit 6a3730a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/assets/scss/preview.scss
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ a {
align-items: center;
justify-content: center;
background-color: transparent !important;
background-image: none !important;
> table,
tr,
td,
Expand Down
4 changes: 4 additions & 0 deletions src/components/editor/components/list/ComponentListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ onMounted(() => {
.component-list-items {
.item {
margin-bottom: var(--spacing-sm);
cursor: grab;
&:active {
cursor: grabbing;
}
}
.name {
margin-bottom: var(--spacing-xs);
Expand Down
3 changes: 2 additions & 1 deletion src/components/email-components/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export function addGhost(dataTransfer: DragEvent['dataTransfer'], name: string)
justifyContent: 'center',
position: 'fixed',
top: '99%', // фикс отображения в safari
}
cursor: 'grabbing',
} as HTMLElement['style']

el.id = 'ghost'
el.innerHTML = name
Expand Down

0 comments on commit 6a3730a

Please sign in to comment.