Skip to content

Commit

Permalink
work for the #8680
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov committed Aug 15, 2024
1 parent a35a758 commit b53e385
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
15 changes: 15 additions & 0 deletions packages/survey-core/src/common-styles/sv-drag-drop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,21 @@
position: absolute;
z-index: 10000;
font-family: var(--sjs-font-family, var(--font-family, var(--sjs-default-font-family)));
min-width: 100px;
max-width: 400px;

.sv-ranking-item {
height: calcSize(6);

.sv-ranking-item__text {

.sv-string-viewer,
.sv-string-editor {
overflow: hidden;
white-space: nowrap;
}
}
}
}

.sv-drag-drop-choices-shortcut__content.sv-drag-drop-choices-shortcut__content {
Expand Down
7 changes: 5 additions & 2 deletions packages/survey-core/src/common-styles/sv-ranking.scss
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@
.sv-ranking-item--ghost {
height: calcSize(6);

.sv-ranking-item__text .sv-string-viewer {
.sv-ranking-item__text .sv-string-viewer,
.sv-ranking-item__text .sv-string-editor {
white-space: unset;
}
}
Expand Down Expand Up @@ -283,7 +284,9 @@
height: calcSize(6);

.sv-ranking-item__text {
.sv-string-viewer {

.sv-string-viewer,
.sv-string-editor {
overflow: hidden;
white-space: nowrap;
}
Expand Down
6 changes: 4 additions & 2 deletions src/default-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,8 @@ f-panel {
word-break: break-all;
margin: 0 calc(2 * var(--base-unit, 8px));

.sv-string-viewer {
.sv-string-viewer,
.sv-string-editor {
overflow: initial;
white-space: pre-line;
}
Expand All @@ -620,7 +621,8 @@ f-panel {
.sv-ranking-item--ghost {
height: calcSize(6);

.sv-ranking-item__text .sv-string-viewer {
.sv-ranking-item__text .sv-string-viewer,
.sv-ranking-item__text .sv-string-editor {
white-space: unset;
}
}
Expand Down

0 comments on commit b53e385

Please sign in to comment.