@xh/hoist 74.1.1 → 74.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -42,6 +42,12 @@
|
|
|
42
42
|
width: 40%;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
+
|
|
46
|
+
&--faves-disabled {
|
|
47
|
+
.xh-grouping-chooser__editor {
|
|
48
|
+
flex: 1;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
45
51
|
}
|
|
46
52
|
|
|
47
53
|
&__list {
|
|
@@ -121,11 +127,6 @@
|
|
|
121
127
|
}
|
|
122
128
|
}
|
|
123
129
|
|
|
124
|
-
&__btn-row {
|
|
125
|
-
min-height: unset !important;
|
|
126
|
-
padding: 2px var(--xh-tbar-item-pad-px);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
130
|
&__favorites {
|
|
130
131
|
&--top {
|
|
131
132
|
border-bottom: 1px solid var(--xh-popup-border-color);
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
div,
|
|
11
11
|
filler,
|
|
12
12
|
fragment,
|
|
13
|
+
frame,
|
|
13
14
|
hbox,
|
|
14
15
|
hframe,
|
|
15
16
|
placeholder,
|
|
@@ -176,7 +177,8 @@ const popoverCmp = hoistCmp.factory<Partial<GroupingChooserProps>>({
|
|
|
176
177
|
popoverMinHeight,
|
|
177
178
|
testId
|
|
178
179
|
}) {
|
|
179
|
-
const
|
|
180
|
+
const {persistFavorites} = model,
|
|
181
|
+
favesTB = isTB(favoritesSide),
|
|
180
182
|
isFavesFirst = favoritesSide === 'left' || favoritesSide === 'top',
|
|
181
183
|
items = [
|
|
182
184
|
editor({
|
|
@@ -194,7 +196,7 @@ const popoverCmp = hoistCmp.factory<Partial<GroupingChooserProps>>({
|
|
|
194
196
|
testId: getTestId(testId, 'favorites')
|
|
195
197
|
})
|
|
196
198
|
],
|
|
197
|
-
itemsContainer = favesTB ? vframe : hframe;
|
|
199
|
+
itemsContainer = !persistFavorites ? frame : favesTB ? vframe : hframe;
|
|
198
200
|
|
|
199
201
|
if (isFavesFirst) {
|
|
200
202
|
items.reverse();
|