@cloud-ru/ds-uikit-product-header 2.1.4-preview-20b4671f.0 → 2.1.4
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 +6 -0
- package/README.md +2 -0
- package/dist/cjs/components/MainMenu/MainMenu.d.ts +1 -1
- package/dist/cjs/components/MainMenu/MainMenu.js +2 -2
- package/dist/cjs/components/MainMenu/helperComponents/Banners/styles.module.css +1 -0
- package/dist/cjs/components/MainMenu/helperComponents/Content/Content.d.ts +5 -1
- package/dist/cjs/components/MainMenu/helperComponents/Content/Content.js +4 -3
- package/dist/cjs/components/MainMenu/helperComponents/Content/helperComponents/SortableGroup/components/SortableGroupDragHandle.d.ts +1 -8
- package/dist/cjs/components/MainMenu/helperComponents/Content/helperComponents/SortableGroup/components/SortableGroupDragHandle.js +2 -2
- package/dist/cjs/components/MainMenu/helperComponents/Content/helperComponents/SortableGroup/components/SortableGroupHeader.d.ts +6 -2
- package/dist/cjs/components/MainMenu/helperComponents/Content/helperComponents/SortableGroup/components/SortableGroupHeader.js +1 -1
- package/dist/cjs/components/MainMenu/helperComponents/Content/helperComponents/SortableGroup/styles.module.css +13 -10
- package/dist/cjs/components/MainMenu/helperComponents/Content/styles.module.css +15 -0
- package/dist/cjs/components/MainMenu/helperComponents/MenuDesktop/MenuDesktop.d.ts +1 -1
- package/dist/cjs/components/MainMenu/helperComponents/MenuDesktop/MenuDesktop.js +4 -4
- package/dist/cjs/components/MainMenu/helperComponents/MenuDesktop/constants.d.ts +1 -1
- package/dist/cjs/components/MainMenu/helperComponents/MenuDesktop/constants.js +3 -3
- package/dist/cjs/components/MainMenu/hooks/useMainMenuDnd.js +12 -0
- package/dist/cjs/components/MainMenu/styles.module.css +8 -0
- package/dist/cjs/components/MainMenu/types.d.ts +1 -1
- package/dist/cjs/style.css +37 -10
- package/dist/esm/components/MainMenu/MainMenu.d.ts +1 -1
- package/dist/esm/components/MainMenu/MainMenu.js +2 -2
- package/dist/esm/components/MainMenu/helperComponents/Banners/styles.module.css +1 -0
- package/dist/esm/components/MainMenu/helperComponents/Content/Content.d.ts +5 -1
- package/dist/esm/components/MainMenu/helperComponents/Content/Content.js +4 -3
- package/dist/esm/components/MainMenu/helperComponents/Content/helperComponents/SortableGroup/components/SortableGroupDragHandle.d.ts +1 -8
- package/dist/esm/components/MainMenu/helperComponents/Content/helperComponents/SortableGroup/components/SortableGroupDragHandle.js +2 -2
- package/dist/esm/components/MainMenu/helperComponents/Content/helperComponents/SortableGroup/components/SortableGroupHeader.d.ts +6 -2
- package/dist/esm/components/MainMenu/helperComponents/Content/helperComponents/SortableGroup/components/SortableGroupHeader.js +1 -1
- package/dist/esm/components/MainMenu/helperComponents/Content/helperComponents/SortableGroup/styles.module.css +13 -10
- package/dist/esm/components/MainMenu/helperComponents/Content/styles.module.css +15 -0
- package/dist/esm/components/MainMenu/helperComponents/MenuDesktop/MenuDesktop.d.ts +1 -1
- package/dist/esm/components/MainMenu/helperComponents/MenuDesktop/MenuDesktop.js +5 -5
- package/dist/esm/components/MainMenu/helperComponents/MenuDesktop/constants.d.ts +1 -1
- package/dist/esm/components/MainMenu/helperComponents/MenuDesktop/constants.js +2 -2
- package/dist/esm/components/MainMenu/hooks/useMainMenuDnd.js +10 -1
- package/dist/esm/components/MainMenu/styles.module.css +8 -0
- package/dist/esm/components/MainMenu/types.d.ts +1 -1
- package/dist/esm/style.css +37 -10
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +28 -28
- package/src/components/MainMenu/MainMenu.tsx +2 -0
- package/src/components/MainMenu/helperComponents/Banners/styles.module.scss +1 -0
- package/src/components/MainMenu/helperComponents/Content/Content.tsx +12 -2
- package/src/components/MainMenu/helperComponents/Content/helperComponents/SortableGroup/components/SortableGroupDragHandle.tsx +1 -11
- package/src/components/MainMenu/helperComponents/Content/helperComponents/SortableGroup/components/SortableGroupHeader.tsx +9 -4
- package/src/components/MainMenu/helperComponents/Content/helperComponents/SortableGroup/styles.module.scss +27 -19
- package/src/components/MainMenu/helperComponents/Content/styles.module.scss +22 -0
- package/src/components/MainMenu/helperComponents/MenuDesktop/MenuDesktop.tsx +6 -4
- package/src/components/MainMenu/helperComponents/MenuDesktop/constants.ts +2 -2
- package/src/components/MainMenu/helperComponents/MenuDesktop/styles.module.scss +6 -2
- package/src/components/MainMenu/hooks/useMainMenuDnd.tsx +12 -1
- package/src/components/MainMenu/styles.module.scss +10 -0
- package/src/components/MainMenu/types.ts +1 -0
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
outline:none;
|
|
9
9
|
}
|
|
10
10
|
.headerActions[data-always-visible]{
|
|
11
|
+
pointer-events:auto;
|
|
11
12
|
opacity:1;
|
|
12
13
|
}
|
|
13
14
|
|
|
@@ -63,20 +64,25 @@
|
|
|
63
64
|
animation:none;
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
|
-
.group[data-drag-preview]{
|
|
67
|
-
cursor:grabbing;
|
|
68
|
-
}
|
|
69
67
|
.group[data-drag-preview] .header{
|
|
70
|
-
cursor:grabbing;
|
|
71
68
|
background-color:var(--sn-theme-color-neutral-decorTransparent, var(--sn-brand-color-neutral-transparent-forLightMode, rgba(136, 146, 170, 0.0784313725)));
|
|
72
69
|
}
|
|
73
70
|
.group[data-drag-preview] .header .headerActions{
|
|
74
71
|
pointer-events:auto;
|
|
75
72
|
opacity:1;
|
|
76
73
|
}
|
|
74
|
+
.group:has(:focus-visible) .headerActions{
|
|
75
|
+
pointer-events:auto;
|
|
76
|
+
opacity:1;
|
|
77
|
+
}
|
|
78
|
+
@media (hover: hover){
|
|
79
|
+
.group:hover .headerActions{
|
|
80
|
+
pointer-events:auto;
|
|
81
|
+
opacity:1;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
77
84
|
|
|
78
85
|
.groupDragPreview{
|
|
79
|
-
cursor:grabbing;
|
|
80
86
|
container-type:inline-size;
|
|
81
87
|
border-radius:var(--sn-density-radius-2xs, var(--sn-platform-comfort-radius-2xs, var(--sn-primitive-dimension-4, 4px)));
|
|
82
88
|
}
|
|
@@ -119,7 +125,6 @@
|
|
|
119
125
|
|
|
120
126
|
.groupBody{
|
|
121
127
|
display:grid;
|
|
122
|
-
grid-template-columns:repeat(3, minmax(auto, 1fr));
|
|
123
128
|
gap:var(--sn-primitive-dimension-4, 4px);
|
|
124
129
|
}
|
|
125
130
|
.groupBody:not([data-subcategory-body]){
|
|
@@ -128,10 +133,8 @@
|
|
|
128
133
|
.groupBody:not([data-show-description]){
|
|
129
134
|
gap:0;
|
|
130
135
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
grid-template-columns:repeat(2, minmax(auto, 1fr));
|
|
134
|
-
}
|
|
136
|
+
.groupBody:not([data-mobile]){
|
|
137
|
+
grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
|
|
135
138
|
}
|
|
136
139
|
.groupBody[data-mobile]{
|
|
137
140
|
grid-template-columns:repeat(1, minmax(200px, 1fr));
|
|
@@ -21,6 +21,21 @@
|
|
|
21
21
|
gap:inherit;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
.rightTop{
|
|
25
|
+
width:100%;
|
|
26
|
+
min-width:0;
|
|
27
|
+
}
|
|
28
|
+
.rightTop:not([data-mobile]){
|
|
29
|
+
display:grid;
|
|
30
|
+
grid-template-columns:repeat(auto-fit, minmax(max(252px, (100% - var(--sn-primitive-dimension-4, 4px)) / 2), 1fr));
|
|
31
|
+
gap:var(--sn-primitive-dimension-4, 4px);
|
|
32
|
+
}
|
|
33
|
+
.rightTop[data-mobile]{
|
|
34
|
+
display:flex;
|
|
35
|
+
flex-direction:column;
|
|
36
|
+
gap:var(--sn-primitive-dimension-8, 8px);
|
|
37
|
+
}
|
|
38
|
+
|
|
24
39
|
.noData{
|
|
25
40
|
flex:1 1 auto;
|
|
26
41
|
place-self:center center;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MainMenuProps } from '../../types.js';
|
|
2
|
-
export declare function MenuDesktop({ open, setOpen, settingItems, platformGroups, segments, segmentPrefs, activeSegmentId, onActiveSegmentChange, onSegmentOrderChange, onSegmentExpandedChange, onSegmentServiceClick, favorite, search, preferences, logo, rightTop, leftTop, leftBottom, defaultWidth, onWidthChangeEnd, draggerTooltip, loading, }: MainMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function MenuDesktop({ open, setOpen, settingItems, platformGroups, segments, segmentPrefs, activeSegmentId, onActiveSegmentChange, onSegmentOrderChange, onSegmentExpandedChange, onToggleAllGroupsExpanded, onSegmentServiceClick, favorite, search, preferences, logo, rightTop, leftTop, leftBottom, defaultWidth, onWidthChangeEnd, draggerTooltip, loading, }: MainMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,9 +13,9 @@ import { MenuBottom } from '../MenuBottom/index.js';
|
|
|
13
13
|
import { MenuHeaderBrand } from '../MenuHeaderBrand/index.js';
|
|
14
14
|
import { MountAnimation } from '../MountAnimation/index.js';
|
|
15
15
|
import { Search } from '../Search/index.js';
|
|
16
|
-
import {
|
|
16
|
+
import { MENU_WIDTH_DEFAULT, MENU_WIDTH_MIN } from './constants.js';
|
|
17
17
|
import styles from './styles.module.css';
|
|
18
|
-
export function MenuDesktop({ open = false, setOpen, settingItems, platformGroups, segments, segmentPrefs, activeSegmentId, onActiveSegmentChange, onSegmentOrderChange, onSegmentExpandedChange, onSegmentServiceClick, favorite, search, preferences, logo, rightTop, leftTop, leftBottom, defaultWidth =
|
|
18
|
+
export function MenuDesktop({ open = false, setOpen, settingItems, platformGroups, segments, segmentPrefs, activeSegmentId, onActiveSegmentChange, onSegmentOrderChange, onSegmentExpandedChange, onToggleAllGroupsExpanded, onSegmentServiceClick, favorite, search, preferences, logo, rightTop, leftTop, leftBottom, defaultWidth = MENU_WIDTH_DEFAULT, onWidthChangeEnd, draggerTooltip, loading, }) {
|
|
19
19
|
const { scrollRef, searchRef, resultItems } = useMenuItems({
|
|
20
20
|
segments,
|
|
21
21
|
search,
|
|
@@ -50,12 +50,12 @@ export function MenuDesktop({ open = false, setOpen, settingItems, platformGroup
|
|
|
50
50
|
const handleCloseDrawer = useCallback(() => {
|
|
51
51
|
setOpen?.(false);
|
|
52
52
|
}, [setOpen]);
|
|
53
|
-
const menu = (_jsxs("div", { className: styles.menu, children: [_jsxs("div", { className: styles.menuHeader, children: [_jsx(MenuHeaderBrand, { logo: logo, onClose: handleCloseDrawer, className: styles.menuHeaderBrand }), isNeedRightBlock && search && (_jsxs(_Fragment, { children: [_jsx(Divider, { orientation: 'vertical' }), _jsx(Search, { ...search, ref: searchRef })] }))] }), _jsx(Divider, {}), _jsxs("div", { className: styles.menuBody, children: [_jsxs(MountAnimation, { className: styles.left, "data-test-id": TEST_IDS.mainMenu.left, type: 'slide-right', children: [leftTop && _jsx("div", { className: styles.leftTop, children: leftTop }), isNeedRightBlock && favorite && _jsx(Favorites, { favorite: favorite, servicesById: servicesById }), hasBottomItems && _jsx(MenuBottom, { settingItems: settingItems, leftBottom: leftBottom })] }), isNeedRightBlock && (_jsxs(_Fragment, { children: [_jsx(MountAnimation, { type: 'fade-in', children: _jsx(Divider, { orientation: 'vertical' }) }), _jsx("div", { className: styles.right, "data-test-id": TEST_IDS.mainMenu.right, children: _jsx(Scroll, { paddingAbsolute: true, className: styles.scroll, ref: scrollRef, barHideStrategy: 'never', overflow: { x: 'hidden' }, children: _jsx(Content, { className: styles.rightContent, searchValue: search?.value, rightTop: rightTop, favorite: favorite, segments: segments, searchGroups: resultItems, segmentPrefs: segmentPrefs, activeSegmentId: activeSegmentId, onActiveSegmentChange: onActiveSegmentChange, onSegmentOrderChange: onSegmentOrderChange, onSegmentExpandedChange: onSegmentExpandedChange, onSegmentServiceClick: onSegmentServiceClick, preferences: preferences, loading: loading }) }) })] }))] })] }));
|
|
53
|
+
const menu = (_jsxs("div", { className: styles.menu, children: [_jsxs("div", { className: styles.menuHeader, children: [_jsx(MenuHeaderBrand, { logo: logo, onClose: handleCloseDrawer, className: styles.menuHeaderBrand }), isNeedRightBlock && search && (_jsxs(_Fragment, { children: [_jsx(Divider, { orientation: 'vertical' }), _jsx(Search, { ...search, ref: searchRef })] }))] }), _jsx(Divider, {}), _jsxs("div", { className: styles.menuBody, children: [_jsxs(MountAnimation, { className: styles.left, "data-test-id": TEST_IDS.mainMenu.left, type: 'slide-right', children: [leftTop && _jsx("div", { className: styles.leftTop, children: leftTop }), isNeedRightBlock && favorite && _jsx(Favorites, { favorite: favorite, servicesById: servicesById }), hasBottomItems && _jsx(MenuBottom, { settingItems: settingItems, leftBottom: leftBottom })] }), isNeedRightBlock && (_jsxs(_Fragment, { children: [_jsx(MountAnimation, { type: 'fade-in', children: _jsx(Divider, { orientation: 'vertical' }) }), _jsx("div", { className: styles.right, "data-test-id": TEST_IDS.mainMenu.right, children: _jsx(Scroll, { paddingAbsolute: true, className: styles.scroll, ref: scrollRef, barHideStrategy: 'never', overflow: { x: 'hidden' }, children: _jsx(Content, { className: styles.rightContent, searchValue: search?.value, rightTop: rightTop, favorite: favorite, segments: segments, searchGroups: resultItems, segmentPrefs: segmentPrefs, activeSegmentId: activeSegmentId, onActiveSegmentChange: onActiveSegmentChange, onSegmentOrderChange: onSegmentOrderChange, onSegmentExpandedChange: onSegmentExpandedChange, onSegmentServiceClick: onSegmentServiceClick, onToggleAllGroupsExpanded: onToggleAllGroupsExpanded, preferences: preferences, loading: loading }) }) })] }))] })] }));
|
|
54
54
|
return (_jsx(DrawerCustom, { open: open, onClose: handleCloseDrawer, width: isNeedRightBlock ? 'm' : 's', position: 'left', className: styles.drawer, rootClassName: styles.drawerRoot, "data-test-id": TEST_IDS.mainMenu.drawer, "data-small": !isNeedRightBlock || undefined, disableMotions: true, showButtonClosed: false, resizable: isNeedRightBlock
|
|
55
55
|
? {
|
|
56
56
|
min: MENU_WIDTH_MIN,
|
|
57
|
-
max:
|
|
58
|
-
default:
|
|
57
|
+
max: 'full',
|
|
58
|
+
default: defaultWidth,
|
|
59
59
|
onResizeEnd: onWidthChangeEnd,
|
|
60
60
|
draggerTooltip,
|
|
61
61
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export const MENU_WIDTH_STORAGE_KEY = 'cloud-ru-main-menu-user-width';
|
|
2
2
|
// паддинг справа 24px у дровера нужно компенсировать
|
|
3
|
-
export const MENU_WIDTH_MIN =
|
|
4
|
-
export const
|
|
3
|
+
export const MENU_WIDTH_MIN = 630 + 24;
|
|
4
|
+
export const MENU_WIDTH_DEFAULT = 1208 + 24;
|
|
@@ -3,9 +3,10 @@ import { DndContext, DragOverlay, KeyboardSensor, PointerSensor, useSensor, useS
|
|
|
3
3
|
import { restrictToVerticalAxis } from '@dnd-kit/modifiers';
|
|
4
4
|
import { sortableKeyboardCoordinates } from '@dnd-kit/sortable';
|
|
5
5
|
import { usePortalContext } from '@cloud-ru/ds-portal-context';
|
|
6
|
-
import { createContext, useCallback, useContext, useMemo, useState } from 'react';
|
|
6
|
+
import { createContext, useCallback, useContext, useEffect, useMemo, useState } from 'react';
|
|
7
7
|
import { createPortal } from 'react-dom';
|
|
8
8
|
import { ServiceCard } from '../helperComponents/ServiceCard/index.js';
|
|
9
|
+
import styles from '../styles.module.css';
|
|
9
10
|
import { favoriteListCollisionDetection, getDragReferenceY, isServiceDragId, isServiceSourceDragId, parseServiceDragId, resolveFavoriteOrderOnDragEnd, } from '../utils/index.js';
|
|
10
11
|
const restrictGroupDragToVerticalAxis = args => {
|
|
11
12
|
if (args.active?.id != null && isServiceSourceDragId(args.active.id)) {
|
|
@@ -82,6 +83,14 @@ export function useMainMenuDnd({ favorite, servicesById, showDescription }) {
|
|
|
82
83
|
}
|
|
83
84
|
export function MainMenuDndContext({ children, sensors, modifiers, collisionDetection, onDragStart, onDragEnd, onDragCancel, dragOverlay, overlayContextValue, }) {
|
|
84
85
|
const portalContextRef = usePortalContext();
|
|
86
|
+
const isDragging = Boolean(dragOverlay);
|
|
87
|
+
useEffect(() => {
|
|
88
|
+
if (!isDragging)
|
|
89
|
+
return;
|
|
90
|
+
/* Для предотвращения случайных взаимодействий с любыми другими элементами при перетаскивании */
|
|
91
|
+
document.body.classList.add(styles.dragging);
|
|
92
|
+
return () => document.body.classList.remove(styles.dragging);
|
|
93
|
+
}, [isDragging]);
|
|
85
94
|
// `DragOverlay` рендерит `position: fixed` без собственного портала. Drawer-обёртка
|
|
86
95
|
// (`.snack-rc-drawer-content-wrapper`) держит `will-change: transform`, а это, как и
|
|
87
96
|
// настоящий transform, создаёт containing block для fixed-потомков — оверлей резолвится
|
|
@@ -240,7 +240,7 @@ export type MainMenuSettingsItem = Pick<InnerLink, 'id' | 'label' | 'icon' | 'on
|
|
|
240
240
|
/** Разделитель до/после пункта. */
|
|
241
241
|
divider?: 'before' | 'after';
|
|
242
242
|
};
|
|
243
|
-
export type MainMenuProps = Pick<ContentProps, 'segments' | 'searchGroups' | 'segmentPrefs' | 'activeSegmentId' | 'onActiveSegmentChange' | 'onSegmentOrderChange' | 'onSegmentExpandedChange' | 'onSegmentServiceClick' | 'favorite' | 'preferences' | 'loading' | 'rightTop'> & {
|
|
243
|
+
export type MainMenuProps = Pick<ContentProps, 'segments' | 'searchGroups' | 'segmentPrefs' | 'activeSegmentId' | 'onActiveSegmentChange' | 'onSegmentOrderChange' | 'onSegmentExpandedChange' | 'onToggleAllGroupsExpanded' | 'onSegmentServiceClick' | 'favorite' | 'preferences' | 'loading' | 'rightTop'> & {
|
|
244
244
|
/** Кнопка открытия меню недоступна для клика. */
|
|
245
245
|
disabled?: boolean;
|
|
246
246
|
/**
|
package/dist/esm/style.css
CHANGED
|
@@ -169,6 +169,7 @@
|
|
|
169
169
|
|
|
170
170
|
.promoTag{
|
|
171
171
|
cursor:inherit;
|
|
172
|
+
flex-shrink:0;
|
|
172
173
|
}
|
|
173
174
|
.root{
|
|
174
175
|
display:flex;
|
|
@@ -300,6 +301,7 @@
|
|
|
300
301
|
outline:none;
|
|
301
302
|
}
|
|
302
303
|
.headerActions[data-always-visible]{
|
|
304
|
+
pointer-events:auto;
|
|
303
305
|
opacity:1;
|
|
304
306
|
}
|
|
305
307
|
|
|
@@ -355,20 +357,25 @@
|
|
|
355
357
|
animation:none;
|
|
356
358
|
}
|
|
357
359
|
}
|
|
358
|
-
.group[data-drag-preview]{
|
|
359
|
-
cursor:grabbing;
|
|
360
|
-
}
|
|
361
360
|
.group[data-drag-preview] .header{
|
|
362
|
-
cursor:grabbing;
|
|
363
361
|
background-color:var(--sn-theme-color-neutral-decorTransparent, var(--sn-brand-color-neutral-transparent-forLightMode, rgba(136, 146, 170, 0.0784313725)));
|
|
364
362
|
}
|
|
365
363
|
.group[data-drag-preview] .header .headerActions{
|
|
366
364
|
pointer-events:auto;
|
|
367
365
|
opacity:1;
|
|
368
366
|
}
|
|
367
|
+
.group:has(:focus-visible) .headerActions{
|
|
368
|
+
pointer-events:auto;
|
|
369
|
+
opacity:1;
|
|
370
|
+
}
|
|
371
|
+
@media (hover: hover){
|
|
372
|
+
.group:hover .headerActions{
|
|
373
|
+
pointer-events:auto;
|
|
374
|
+
opacity:1;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
369
377
|
|
|
370
378
|
.groupDragPreview{
|
|
371
|
-
cursor:grabbing;
|
|
372
379
|
container-type:inline-size;
|
|
373
380
|
border-radius:var(--sn-density-radius-2xs, var(--sn-platform-comfort-radius-2xs, var(--sn-primitive-dimension-4, 4px)));
|
|
374
381
|
}
|
|
@@ -411,7 +418,6 @@
|
|
|
411
418
|
|
|
412
419
|
.groupBody{
|
|
413
420
|
display:grid;
|
|
414
|
-
grid-template-columns:repeat(3, minmax(auto, 1fr));
|
|
415
421
|
gap:var(--sn-primitive-dimension-4, 4px);
|
|
416
422
|
}
|
|
417
423
|
.groupBody:not([data-subcategory-body]){
|
|
@@ -420,10 +426,8 @@
|
|
|
420
426
|
.groupBody:not([data-show-description]){
|
|
421
427
|
gap:0;
|
|
422
428
|
}
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
grid-template-columns:repeat(2, minmax(auto, 1fr));
|
|
426
|
-
}
|
|
429
|
+
.groupBody:not([data-mobile]){
|
|
430
|
+
grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
|
|
427
431
|
}
|
|
428
432
|
.groupBody[data-mobile]{
|
|
429
433
|
grid-template-columns:repeat(1, minmax(200px, 1fr));
|
|
@@ -575,6 +579,21 @@
|
|
|
575
579
|
gap:inherit;
|
|
576
580
|
}
|
|
577
581
|
|
|
582
|
+
.rightTop{
|
|
583
|
+
width:100%;
|
|
584
|
+
min-width:0;
|
|
585
|
+
}
|
|
586
|
+
.rightTop:not([data-mobile]){
|
|
587
|
+
display:grid;
|
|
588
|
+
grid-template-columns:repeat(auto-fit, minmax(max(252px, (100% - var(--sn-primitive-dimension-4, 4px)) / 2), 1fr));
|
|
589
|
+
gap:var(--sn-primitive-dimension-4, 4px);
|
|
590
|
+
}
|
|
591
|
+
.rightTop[data-mobile]{
|
|
592
|
+
display:flex;
|
|
593
|
+
flex-direction:column;
|
|
594
|
+
gap:var(--sn-primitive-dimension-8, 8px);
|
|
595
|
+
}
|
|
596
|
+
|
|
578
597
|
.noData{
|
|
579
598
|
flex:1 1 auto;
|
|
580
599
|
place-self:center center;
|
|
@@ -939,6 +958,14 @@
|
|
|
939
958
|
.staticCard{
|
|
940
959
|
position:relative;
|
|
941
960
|
}
|
|
961
|
+
.dragging,
|
|
962
|
+
.dragging *{
|
|
963
|
+
cursor:grabbing !important;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
.dragging *{
|
|
967
|
+
pointer-events:none !important;
|
|
968
|
+
}
|
|
942
969
|
.container{
|
|
943
970
|
display:flex;
|
|
944
971
|
align-items:center;
|