Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue/5966 toolbox animations #5972

Merged
merged 116 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from 115 commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
3128dbb
Toolbox redesign. surveyjs/private-tasks#379
novikov82 Sep 26, 2024
51fd662
fixed tests
Sep 27, 2024
d0f296d
fixed compact
Sep 27, 2024
7ebe2d6
fixed some rtl styles
Sep 27, 2024
0ba58d8
fixed some rtl styles
Sep 28, 2024
5dd214b
fics compact item paddings
Sep 28, 2024
c8c6452
Toolbox redesign. surveyjs/private-tasks#379
novikov82 Sep 30, 2024
5d48d2a
item with subitems alignment
novikov82 Sep 30, 2024
06eca19
item with subitems alignment
novikov82 Sep 30, 2024
ba35cc7
#5849 Toolbox. Shows a submenu on the button hover.
novikov82 Sep 30, 2024
c9e1135
Toolbox. Shows a submenu on the button hover. #5849
Sep 30, 2024
e6707bd
#5849 Toolbox. Shows a submenu on the button hover.
novikov82 Oct 1, 2024
0a14cdc
#5849 - fixed knockout
novikov82 Oct 1, 2024
6b1916d
#5849 Toolbox. Shows a submenu on the button hover.
novikov82 Oct 2, 2024
d1f64aa
#5849 - fixed f-test
novikov82 Oct 2, 2024
580a8b6
#5849 - try to fix v-test
novikov82 Oct 2, 2024
d8055d0
#5849 - fixed right and sidebar styles
novikov82 Oct 3, 2024
882935f
Merge branch 'issue/5849-Toolbox-Shows-a-submenu-on-the-button-hover'…
novikov82 Oct 3, 2024
e6574f9
#5849 remove css hack
novikov82 Oct 3, 2024
6eb2174
#5849 update some screenshots
novikov82 Oct 3, 2024
95683c6
Merge remote-tracking branch 'origin/master' into issue/5849-Toolbox-…
novikov82 Oct 3, 2024
116d5c1
#5849 remove css
novikov82 Oct 3, 2024
88a47fa
#5849 update more screenshots
novikov82 Oct 3, 2024
6482204
#5849 update more screenshots
novikov82 Oct 3, 2024
02e53e6
#5849 update more screenshots
novikov82 Oct 3, 2024
00f3a28
#5849 fix compact toolbox paddings
novikov82 Oct 3, 2024
8ad6bfd
#5849 fixed right toolbox popup
novikov82 Oct 3, 2024
4bb14b4
Merge branch 'issue/5849-Toolbox-Shows-a-submenu-on-the-button-hover'…
novikov82 Oct 3, 2024
959beb1
Merge remote-tracking branch 'origin/master' into feature/Toolbox-red…
novikov82 Oct 4, 2024
e03f557
simplified some styles
novikov82 Oct 4, 2024
6ede7aa
implement overlayed scrollbars
novikov82 Oct 5, 2024
0bd6650
Merge branch 'feature/Toolbox-redesign.-private-tasks-#379' of https:…
novikov82 Oct 5, 2024
8a36ec7
continue fixing styles
novikov82 Oct 6, 2024
bcc60cc
new left toolbox
novikov82 Oct 7, 2024
1d6c3b1
fixed compact mode
novikov82 Oct 7, 2024
6ba1b8e
continue fixing styles
novikov82 Oct 7, 2024
4b1b0c7
fixed some rtl
novikov82 Oct 7, 2024
2412c4c
rtl
novikov82 Oct 8, 2024
2079ad2
toolbox-right
novikov82 Oct 8, 2024
d008c50
dots item
novikov82 Oct 8, 2024
e68f4e9
fixed categories
novikov82 Oct 8, 2024
50ff3c5
fixed pressed state
novikov82 Oct 8, 2024
24d3811
fixed old theme left toolbox - full mode
novikov82 Oct 8, 2024
09b6409
Merge remote-tracking branch 'origin/master' into feature/Toolbox-red…
novikov82 Oct 8, 2024
14396b2
fixed subtypes
novikov82 Oct 8, 2024
df5a33f
fixed compact toolbox
novikov82 Oct 8, 2024
f991b38
updated right screenshots
novikov82 Oct 9, 2024
048613b
fixed compact toolbox width
novikov82 Oct 9, 2024
ccdd2fa
remove old test
novikov82 Oct 9, 2024
10c5601
fix banner padding
novikov82 Oct 9, 2024
32255bf
fixed compact hovers
novikov82 Oct 9, 2024
50b72fe
fixed flyout mode
novikov82 Oct 9, 2024
8157fa6
Merge remote-tracking branch 'origin/master' into feature/Toolbox-red…
novikov82 Oct 10, 2024
5979042
fixed some tests
novikov82 Oct 10, 2024
0b937c0
try to fix many tests with custom toolbox width
novikov82 Oct 10, 2024
bd101b4
fixed padding and box-shadows
novikov82 Oct 10, 2024
eed924c
repair postcss tests
novikov82 Oct 11, 2024
b123b8f
scrollbar on hover
novikov82 Oct 11, 2024
de213de
fix keyboard interaction
novikov82 Oct 11, 2024
cff86aa
add animations to hover
novikov82 Oct 11, 2024
03dcfce
set toolbox width for tests
novikov82 Oct 11, 2024
351669f
fix some visual tests
novikov82 Oct 11, 2024
b586066
fix f-tests
novikov82 Oct 11, 2024
2fa7093
fixed some visual tests
novikov82 Oct 11, 2024
d096dc7
fixed f-test
novikov82 Oct 11, 2024
02f1da3
fix some tests and update screenshots
novikov82 Oct 12, 2024
09bdb7d
update toolbox screenshots
novikov82 Oct 13, 2024
b0e3867
update non-toolbox screenshots
novikov82 Oct 13, 2024
0fb56cb
remove mask of wrong size
novikov82 Oct 13, 2024
cbd6eae
fix v-tests
novikov82 Oct 14, 2024
5e02dcb
fix v-tests
novikov82 Oct 14, 2024
e1d23b7
angular
novikov82 Oct 14, 2024
7f35b37
angular fix scrollbar markup
novikov82 Oct 14, 2024
2430ead
vue
novikov82 Oct 14, 2024
ab21f20
angular tool classes
novikov82 Oct 14, 2024
2b07766
fix vue build
novikov82 Oct 14, 2024
1d98586
vue build
novikov82 Oct 14, 2024
802777a
angular fix
novikov82 Oct 14, 2024
15b1c41
Merge branch 'feature/Toolbox-redesign.-private-tasks-#379' of https:…
novikov82 Oct 15, 2024
0577ddb
fix vue styles
novikov82 Oct 15, 2024
df9ff1a
fix angular markup
novikov82 Oct 15, 2024
215023b
Merge remote-tracking branch 'origin/master' into feature/Toolbox-red…
novikov82 Oct 15, 2024
403e18a
fix css
novikov82 Oct 15, 2024
ad6c0f5
remove delay for submenu show
novikov82 Oct 15, 2024
b7506ce
knockout
novikov82 Oct 15, 2024
c7d8763
fix compact toolbox click - angular, vue, ko
novikov82 Oct 15, 2024
efa5e43
fix toolbox right test
novikov82 Oct 16, 2024
bf98eee
fix toolbox hide separators on search
novikov82 Oct 16, 2024
89f06e3
beak with a shadow
novikov82 Oct 16, 2024
d1036cc
update screenshots
novikov82 Oct 16, 2024
28d1646
fixed ko category header
novikov82 Oct 16, 2024
855abb3
try to fix angular ResizeObserver error
novikov82 Oct 16, 2024
fbde9ca
disconnect ResizeObserver - fix angular tests
novikov82 Oct 16, 2024
54c0b9e
#5966 Toolbox animations
novikov82 Oct 16, 2024
522e6fc
#5966 Toolbox animations
novikov82 Oct 17, 2024
d7fef9b
toolbox and separators #5966
novikov82 Oct 21, 2024
f5f0bca
Merge remote-tracking branch 'origin/HEAD' into issue/5966-Toolbox-an…
novikov82 Oct 21, 2024
9340902
fixes to deafult theme #5966
novikov82 Oct 21, 2024
34110a0
fixes to deafult theme flyout #5966
novikov82 Oct 21, 2024
ddc81c3
animated separators #5966
novikov82 Oct 21, 2024
5c9eb8e
fixed toolbox search separator position in default theme #5966
novikov82 Oct 21, 2024
d1e7ae8
#5966 Toolbox animations -reneme classes
novikov82 Oct 21, 2024
e962d8b
fix css build warning #5966
novikov82 Oct 21, 2024
0cd4d43
#5966 switch off animations
novikov82 Oct 22, 2024
a39bafc
fix toolbox width #5966
novikov82 Oct 22, 2024
5318fc6
Merge remote-tracking branch 'origin/master' into issue/5966-Toolbox-…
novikov82 Oct 22, 2024
075690c
change timing #5966
novikov82 Oct 22, 2024
d1d91cb
fixed separators #5966
novikov82 Oct 22, 2024
38b04ba
add test and fix flyout class #5966
novikov82 Oct 22, 2024
2b74059
#5966 Toolbox animations - add margin to compact toolbox
novikov82 Oct 22, 2024
4aa0512
Merge remote-tracking branch 'origin/master' into issue/5966-Toolbox-…
novikov82 Oct 23, 2024
d59322c
#5966 Toolbox animations - fix timings
novikov82 Oct 23, 2024
e14e3ce
#5966 Toolbox animations - fix rtl compact search
novikov82 Oct 23, 2024
409dd95
#5966 Toolbox animations - ko f-test
novikov82 Oct 23, 2024
bdad8f2
#5966 Toolbox animations - fixed f-tests
novikov82 Oct 23, 2024
461c562
Merge branch 'master' into issue/5966-Toolbox-animations
novikov82 Oct 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<ng-container *ngIf="model.isCompactRendered">
<svc-toolbox-tool [creator]="creator" [item]="searchItem" [parentModel]="model"
[isCompact]="model.isCompactRendered"></svc-toolbox-tool>
<div class="svc-toolbox__category-separator svc-toolbox__category-separator--search"></div>
</ng-container>
<svc-search [model]="model.searchManager"></svc-search>
<div class="svc-toolbox__category-separator svc-toolbox__category-separator--search"></div>
</div>
<div class="svc-toolbox__scroll-wrapper">
<div class="svc-toolbox__scroller sv-drag-target-skipped" (scroll)="model.onScroll(model, $event)">
Expand Down
4 changes: 2 additions & 2 deletions packages/survey-creator-core/creator-themes-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ var themeConstants = {
"default": {
"--ctr-toolbox-scrollbar-left": "auto",
"--ctr-toolbox-scrollbar-right": "0",
"--ctr-toolbox-scrollbar-display": "none",
"--ctr-toolbox-scroller-align-items": "flex-start",
"--ctr-toolbox-item-submenu-button-right": "8px",
"--ctr-toolbox-item-align": "stretch",
"--ctr-toolbox-submenu-offset": "13px",
"--ctr-toolbox-width-compact": "72px",
"--ctr-toolbox-separator-width": "calc(100% + 8px)",
"--ctr-toolbox-margin-left-compact": "0px",
"--ctr-toolbox-separator-width": "208px",
"--ctr-toolbox-separator-width-compact": "40px",
"--ctr-toolbox-item-banner-icon-display": "none",
"--ctr-toolbox-item-banner-beak-display": "block",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
@import "../../variables.scss";
$svc-toolbox-fade-in-duration: var(--sjs-svc-toolbox-fade-in-duration, 250ms);
$svc-toolbox-move-in-duration: var(--sjs-svc-toolbox-move-in-duration, 250ms);
$svc-toolbox-fade-in-delay: var(--sjs-svc-toolbox-fade-in-delay, 100ms);
$svc-toolbox-fade-out-duration: var(--sjs-svc-toolbox-fade-out-duration, 250ms);
$svc-toolbox-move-out-duration: var(--sjs-svc-toolbox-move-out-duration, 250ms);
$svc-toolbox-move-out-delay: var(--sjs-svc-toolbox-move-out-delay, 0ms);

$cubic-ease-out: cubic-bezier(0.33, 1, 0.68, 1);
$reverse-cubic-ease-out: cubic-bezier(0.32, 0, 0.67, 0);

@keyframes toolboxFadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

@keyframes toolboxMoveIn {
from {
width: var(--toolbox-width-compact);
overflow: hidden;
}
to {
width: var(--toolbox-width);
overflow: hidden;
}
}

@keyframes toolboxSeparatorSearchMoveIn {
from {
width: var(--ctr-toolbox-separator-width-compact, calcSize(5));
overflow: hidden;
}
to {
width: var(--toolbox-width);
overflow: hidden;
}
}

@keyframes toolboxSeparatorMoveIn {
from {
width: var(--ctr-toolbox-separator-width-compact, calcSize(5));
overflow: hidden;
}
to {
width: var(--ctr-toolbox-separator-width, calcSize(5));
overflow: hidden;
}
}

.svc-toolbox__panel--enter,
.svc-toolbox__panel--leave
{
animation-fill-mode: forwards;
animation-duration: var(--move-animation-duration), var(--animation-duration);
animation-delay: var(--move-animation-delay), 0s;
animation-direction: var(--animation-direction);
animation-timing-function: var(--animation-timing-function);
animation-name: toolboxMoveIn, empty;
animation-fill-mode: forwards;
.svc-toolbox__category-separator {
animation-duration: var(--move-animation-duration);
animation-delay: var(--move-animation-delay);
animation-direction: var(--animation-direction);
animation-timing-function: var(--animation-timing-function);
animation-name: toolboxSeparatorMoveIn;
animation-fill-mode: forwards;
}
.svc-toolbox__category-separator--search {
animation-name: toolboxSeparatorSearchMoveIn;
}
.svc-toolbox__item-submenu-button,
.svc-toolbox__item-title,
.spg-search-editor_input {
animation-duration: var(--fade-animation-duration);
animation-delay: var(--fade-animation-delay);
animation-direction: var(--animation-direction);
animation-timing-function: var(--animation-timing-function);
animation-name: toolboxFadeIn;
animation-fill-mode: forwards;
opacity: 0;
}
}
.svc-toolbox__panel--enter {
--fade-animation-duration: #{$svc-toolbox-fade-in-duration};
--move-animation-duration: #{$svc-toolbox-move-in-duration};
--fade-animation-delay: #{$svc-toolbox-fade-in-delay};
--move-animation-delay: 0s;
--animation-direction: normal;
--animation-duration: calc(var(--fade-animation-delay) + var(--fade-animation-duration));
--animation-timing-function: #{$cubic-ease-out};
}
.svc-toolbox__panel--leave {
--fade-animation-duration: #{$svc-toolbox-fade-out-duration};
--move-animation-duration: #{$svc-toolbox-move-out-duration};
--fade-animation-delay: 0s;
--move-animation-delay: #{$svc-toolbox-move-out-delay};
--animation-direction: reverse;
--animation-duration: 0s;
--animation-timing-function: #{$reverse-cubic-ease-out};
}

.svc-toolbox--flyout-to-compact-running {
width: var(--toolbox-width-compact);
z-index: 200;
border-inline-end: var(--ctr-toolbox-border-width-right, 0px) solid transparent;
}

.svc-creator--disable-animations {
.svc-toolbox__panel--enter,
.svc-toolbox__panel--leave
{
animation: none;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@
.svc-toolbox__tool {
padding: 0px var(--ctr-toolbox-item-margin-horizontal-no-text, 0px);
align-self: flex-start;
pointer-events: all;
}
.svc-toolbox__search-button {
padding-inline-start: var(--ctr-toolbox-item-margin-horizontal-no-text, calcSize(0.5));
Expand Down
90 changes: 51 additions & 39 deletions packages/survey-creator-core/src/components/toolbox/toolbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ svc-toolbox {
}

.svc-toolbox {
--toolbox-width: var(--ctr-toolbox-min-width, 224.984375px /*calcSize(28)*/);
--toolbox-width-compact: var(--ctr-toolbox-width-compact, calc(9 *#{$base-unit}));

width: auto;
height: 100%;
display: flex;
flex-direction: column;
width: var(--ctr-toolbox-min-width, 224.984375px /*calcSize(28)*/);
.spg-search-editor_container {
background: var(--ctr-toolbox-background-color, $background-dim);
padding-top: var(--ctr-toolbox-search-padding-top, calcSize(2.5));
Expand Down Expand Up @@ -53,6 +56,7 @@ svc-toolbox {
flex-direction: column;
border-inline-end: var(--ctr-toolbox-border-width-right, 0px) solid var(--ctr-toolbox-border-color, transparent);
background: var(--ctr-toolbox-background-color, $background-dim);
width: var(--toolbox-width);
}

.svc-toolbox__scroll-wrapper {
Expand Down Expand Up @@ -93,14 +97,13 @@ svc-toolbox {
overflow-x: hidden;
width: calcSize(2);
margin-inline-start: calcSize(-0.5);
display: var(--ctr-toolbox-scrollbar-display, none);
display: none;
z-index: 30;
padding: var(--ctr-toolbox-padding-top, calcSize(1)) 0 var(--ctr-toolbox-padding-bottom, calcSize(2)) 0;
@-moz-document url-prefix() {
scrollbar-width: thin;
scrollbar-color: $border transparent;
}
padding: var(--ctr-toolbox-padding-top, calcSize(1)) 0
var(--ctr-toolbox-padding-bottom, calcSize(2)) 0;
// &::-webkit-scrollbar-track {
// background: var(--ctr-toolbox-background-color, $background-dim);
// }
Expand All @@ -113,58 +116,43 @@ svc-toolbox {
direction: initial;
}
}

.svc-toolbox--scrollable {
width: var(--ctr-toolbox-min-width, 236.984375px);
--toolbox-width: var(--ctr-toolbox-min-width, 236.984375px);
}

.svc-toolbox--compact {
width: var(--ctr-toolbox-width-compact, calcSize(10.5));
margin-inline-end: var(--ctr-toolbox-margin-left-compact, calcSize(1.5));
.svc-toolbox__panel {
overflow: visible;
width: var(--toolbox-width-compact);
}
.svc-toolbox__scroller {
width: 100vw;
padding: var(--ctr-toolbox-padding-top, calcSize(1.5)) var(--ctr-toolbox-group-padding-right-compact, calcSize(1.5))
var(--ctr-toolbox-padding-bottom, calcSize(2)) var(--ctr-toolbox-group-padding-left-compact, calcSize(1.5));
pointer-events: none;
}
.spg-search-editor_container {
opacity: 0;
position: absolute;
}
.svc-toolbox__search-container {
border-bottom: 0;
padding-top: var(--ctr-toolbox-padding-top, calcSize(1.5));
padding-inline-start: var(--ctr-toolbox-group-padding-left, calcSize(1.5));
padding-inline-end: var(--ctr-toolbox-group-padding-left, calcSize(1));
padding-inline-end: var(--ctr-toolbox-group-padding-left, calcSize(1.5));
padding-bottom: calc(var(--ctr-toolbox-separator-padding-top, 8px) + var(--ctr-toolbox-gap, 4px));
}
.svc-toolbox__category-separator {
margin-top: calc(var(--ctr-toolbox-separator-padding-top, 8px) + var(--ctr-toolbox-gap, 4px));
width: var(--ctr-toolbox-separator-width-compact, calcSize(5));
margin-inline-end: calc(
var(--ctr-toolbox-separator-padding-right-compact, 16px) -
var(--ctr-toolbox-group-padding-left-compact, 12px) -
var(--ctr-toolbox-separator-padding-right-compact, 16px) - var(--ctr-toolbox-group-padding-left-compact, 12px) -
var(--ctr-toolbox-item-margin-horizontal-no-text, 0px)
);
margin-bottom: var(--ctr-toolbox-separator-padding-bottom, 8px);
margin-inline-start: calc(
var(--ctr-toolbox-separator-padding-left-compact, 16px) -
var(--ctr-toolbox-group-padding-left-compact, 12px) -
var(--ctr-toolbox-separator-padding-left-compact, 16px) - var(--ctr-toolbox-group-padding-left-compact, 12px) -
var(--ctr-toolbox-item-margin-horizontal-no-text, 0px)
);
}
.svc-toolbox__category-separator--search {
margin-inline-end: calc(
var(--ctr-toolbox-separator-padding-right-compact, 16px) -
var(--ctr-toolbox-group-padding-left-compact, 12px)
);
margin-bottom: 0;
margin-inline-start: calc(
var(--ctr-toolbox-separator-padding-left-compact, 16px) -
var(--ctr-toolbox-group-padding-left-compact, 12px)
);
min-height: 1px;
}
}

.svc-toolbox__tool.svc-toolbox__search-button {
Expand All @@ -175,9 +163,15 @@ svc-toolbox {
}

.svc-toolbox--flyout {
--toolbox-width: var(--ctr-toolbox-min-width, calc(32 *#{$base-unit}));
margin-inline-end: var(--ctr-toolbox-margin-left-compact, calcSize(1.5));
overflow: visible;
max-width: var(--ctr-toolbox-width-compact, calcSize(10.5));
overflow: visible;
width: var(--toolbox-width-compact);
max-width: var(--ctr-toolbox-width-compact, calcSize(10.5));
overflow: visible;
border-inline-end: var(--ctr-toolbox-border-width-right, 0px) solid transparent;

.spg-search-editor_container {
opacity: 1;
Expand All @@ -188,8 +182,14 @@ svc-toolbox {
z-index: 200;
width: var(--ctr-toolbox-min-width, calcSize(32));
position: relative;
box-shadow: var(--ctr-toolbox-shadow-floating-2-offset-x, 0px) var(--ctr-toolbox-shadow-floating-2-offset-y, 8px) var(--ctr-toolbox-shadow-floating-2-blur, 16px) var(--ctr-toolbox-shadow-floating-2-spread, 0px) var(--ctr-toolbox-shadow-floating-2-color, rgba(0, 0, 0, 0.10)),
var(--ctr-toolbox-shadow-floating-1-offset-x, 0px) var(--ctr-toolbox-shadow-floating-1-offset-y, 2px) var(--ctr-toolbox-shadow-floating-1-blur, 6px) var(--ctr-toolbox-shadow-floating-1-spread, 0px) var(--ctr-toolbox-shadow-floating-1-color, rgba(0, 0, 0, 0.10));
box-shadow:
var(--ctr-toolbox-shadow-floating-2-offset-x, 0px) var(--ctr-toolbox-shadow-floating-2-offset-y, 8px)
var(--ctr-toolbox-shadow-floating-2-blur, 16px) var(--ctr-toolbox-shadow-floating-2-spread, 0px)
var(--ctr-toolbox-shadow-floating-2-color, rgba(0, 0, 0, 0.1)),
var(--ctr-toolbox-shadow-floating-1-offset-x, 0px) var(--ctr-toolbox-shadow-floating-1-offset-y, 2px)
var(--ctr-toolbox-shadow-floating-1-blur, 6px) var(--ctr-toolbox-shadow-floating-1-spread, 0px)
var(--ctr-toolbox-shadow-floating-1-color, rgba(0, 0, 0, 0.1));
transition: box-shadow $creator-transition-duration;
}
}
.svc-toolbox--searchable {
Expand All @@ -198,8 +198,6 @@ svc-toolbox {
}
}



.svc-toolbox__container {
width: 100%;
}
Expand All @@ -212,11 +210,11 @@ svc-toolbox {
flex-direction: column;
box-sizing: border-box;
background: var(--ctr-toolbox-background-color, $background-dim);
border-bottom: var(--ctr-toolbox-search-border-width-bottom, 1px) solid var(--ctr-toolbox-search-border-color, $border);
border-bottom: var(--ctr-toolbox-search-border-width-bottom, 1px) solid transparent;

svg {
pointer-events: none;
}
}
}

.svc-toolbox__category {
Expand All @@ -232,26 +230,40 @@ svc-toolbox {
margin: calcSize(1.5) calcSize(0.5) calcSize(1);
}

.svc-toolbox__category-separator--search {
position: absolute;
bottom: 0;
margin-bottom: -1px;
min-height: 1px;
width: var(--toolbox-width);
align-self: center;
margin-left: auto;
margin-right: auto;
}

.svc-toolbox--no-separators {
.svc-toolbox__category-separator {
display: none;
}
.svc-toolbox__category-separator--search {
display: block;
}
}


.svc-toolbox__category-header-wrapper {
padding: var(--ctr-toolbox-group-header-margin-top, 0px) var(--ctr-toolbox-group-header-margin-left, 0px) var(--ctr-toolbox-group-header-margin-bottom, 0px) var(--ctr-toolbox-group-header-margin-left, 0px);
padding: var(--ctr-toolbox-group-header-margin-top, 0px) var(--ctr-toolbox-group-header-margin-left, 0px)
var(--ctr-toolbox-group-header-margin-bottom, 0px) var(--ctr-toolbox-group-header-margin-left, 0px);
margin-inline-start: calc(0px - var(--ctr-toolbox-group-padding-left, 0px));
margin-inline-end: calc(0px - var(--ctr-toolbox-group-padding-right, 0px));
align-self: stretch;
}
.svc-toolbox__category-header {
height: calcSize(5);
padding-top: var(--ctr-toolbox-group-header-padding-top, calcSize(1.5));
padding-inline-end: var(--ctr-toolbox-group-header-padding-right, calcSize(1.5));
padding-bottom: var(--ctr-toolbox-group-header-padding-bottom, calcSize(1.5));
padding-top: var(--ctr-toolbox-group-header-padding-top, calcSize(1.5));
padding-inline-end: var(--ctr-toolbox-group-header-padding-right, calcSize(1.5));
padding-bottom: var(--ctr-toolbox-group-header-padding-bottom, calcSize(1.5));
padding-inline-start: var(--ctr-toolbox-group-header-padding-left, calcSize(1.5));

// box-shadow: 0px 1px 0px $border;
border-bottom: 1px solid $border;
box-sizing: border-box;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export class CreatorResponsivityManager {
process(isFirst: boolean = false) {
if(isFirst) {
this.creator.sidebar.blockAnimations();
this.creator.toolbox.blockAnimations();
}
this.currentWidth = this.getScreenWidth();
if (this.currentWidth === "xl" || this.currentWidth === "xxl") {
Expand All @@ -96,6 +97,7 @@ export class CreatorResponsivityManager {
}
if (isFirst) {
this.creator.sidebar.releaseAnimations();
this.creator.toolbox.releaseAnimations();
}
}

Expand Down
1 change: 1 addition & 0 deletions packages/survey-creator-core/src/entries/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ require("../components/toolbox/toolbox-tool.scss");
require("../components/question-dropdown.scss");
require("../components/toolbox/toolbox.scss");
require("../components/toolbox/toolbox-right.scss");
require("../components/toolbox/toolbox-animation.scss");
require("../components/side-bar/side-bar.scss");
require("../components/side-bar/tab-control.scss");
require("../property-grid-theme/property-grid.scss");
Expand Down
Loading