Skip to content

Commit

Permalink
work for the #8056
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov committed Apr 30, 2024
1 parent d86f250 commit d3465f9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
14 changes: 13 additions & 1 deletion src/common-styles/sv-ranking.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
.sv-ranking-item--preview.sv-ranking-item--preview {
cursor: initial;
user-select: initial;
-webkit-user-select: initial;
-webkit-user-select: initial;

.sv-ranking-item__icon-container.sv-ranking-item__icon-container {
.sv-ranking-item__icon.sv-ranking-item__icon {
Expand Down Expand Up @@ -248,6 +248,18 @@
}
}

.sv-ranking-shortcut {
cursor: grabbing;
position: absolute;
z-index: 10000;
border-radius: calc(12.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
min-width: 100px;
max-width: 400px;
box-shadow: var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));
background-color: var(--sjs-general-backcolor, var(--background, #fff));
font-family: var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));
}

.sv-ranking--select-to-rank {
display: flex;
}
Expand Down
11 changes: 0 additions & 11 deletions src/dragdrop/ranking-choices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,6 @@ export class DragDropRankingChoices extends DragDropChoices {
if(!draggedElementShortcut) return;

draggedElementShortcut.className = this.shortcutClass + " sv-ranking-shortcut";
draggedElementShortcut.style.cssText = `
cursor: grabbing;
position: absolute;
z-index: 10000;
border-radius: calc(12.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
min-width: 100px;
max-width: 400px;
box-shadow: var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));
background-color: var(--sjs-general-backcolor, var(--background, #fff));
font-family: var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));
`;

const isDeepClone = true;
const clone = <HTMLElement>draggedElementNode.cloneNode(isDeepClone);
Expand Down

0 comments on commit d3465f9

Please sign in to comment.