tycho-components 0.21.11 → 0.21.13
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.
|
@@ -69,5 +69,5 @@ export default function HeaderCorpora({ navigateCorpora, redirect, autoload, use
|
|
|
69
69
|
useEffect(() => {
|
|
70
70
|
autoload && loadAndApply();
|
|
71
71
|
}, [autoload]);
|
|
72
|
-
return (_jsxs(_Fragment, { children: [hasCorpus() && _jsx(HeaderCorpus, { onClick: handleCorpusClick }), openCorpora && (_jsx(AppModal, { className: "modal-corpora", title: t('label.choose'), close: () => setOpenCorpora(false), children: corpora.map((corpus) => (_jsxs("div", { className: "item", onClick: () => handleChooseCorpus(corpus), children: [_jsx(AppPicture, { src: corpus.picture, title: corpus.name, className: "modal-corpus-image" }), _jsx("span", { children: corpus.name })] }, corpus.uid))) }))] }));
|
|
72
|
+
return (_jsxs(_Fragment, { children: [hasCorpus() && _jsx(HeaderCorpus, { onClick: handleCorpusClick }), openCorpora && (_jsx(AppModal, { className: "modal-corpora", title: t('label.choose'), close: () => setOpenCorpora(false), hideFooter: true, children: corpora.map((corpus) => (_jsxs("div", { className: "item", onClick: () => handleChooseCorpus(corpus), children: [_jsx(AppPicture, { src: corpus.picture, title: corpus.name, className: "modal-corpus-image" }), _jsx("span", { children: corpus.name })] }, corpus.uid))) }))] }));
|
|
73
73
|
}
|
|
@@ -58,6 +58,18 @@
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
@media (max-width: 1366px) {
|
|
62
|
+
.modal-corpora {
|
|
63
|
+
max-width: 70vw !important;
|
|
64
|
+
width: 70vw !important;
|
|
65
|
+
top: 48% !important;
|
|
66
|
+
|
|
67
|
+
> .body {
|
|
68
|
+
max-height: 64vh;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
61
73
|
@media (max-width: 768px) {
|
|
62
74
|
.header-corpus-container .header-corpus-name {
|
|
63
75
|
max-width: 180px;
|
|
@@ -65,6 +77,21 @@
|
|
|
65
77
|
text-overflow: ellipsis;
|
|
66
78
|
white-space: nowrap;
|
|
67
79
|
}
|
|
80
|
+
|
|
81
|
+
.modal-corpora {
|
|
82
|
+
max-width: 90% !important;
|
|
83
|
+
width: 90% !important;
|
|
84
|
+
top: 45% !important;
|
|
85
|
+
|
|
86
|
+
> .body {
|
|
87
|
+
max-height: 60vh;
|
|
88
|
+
|
|
89
|
+
> .item {
|
|
90
|
+
flex: 1 0 calc((100% - 36px) / 4);
|
|
91
|
+
max-width: calc((100% - 36px) / 4);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
68
95
|
}
|
|
69
96
|
|
|
70
97
|
@media (max-width: 767px) {
|
|
@@ -74,4 +101,17 @@
|
|
|
74
101
|
max-width: 160px;
|
|
75
102
|
}
|
|
76
103
|
}
|
|
104
|
+
|
|
105
|
+
.modal-corpora {
|
|
106
|
+
top: 50% !important;
|
|
107
|
+
|
|
108
|
+
> .body {
|
|
109
|
+
max-height: 70vh;
|
|
110
|
+
|
|
111
|
+
> .item {
|
|
112
|
+
flex: 1 0 calc((100% - 36px) / 2);
|
|
113
|
+
max-width: calc((100% - 36px) / 2);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
77
117
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tycho-components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.21.
|
|
4
|
+
"version": "0.21.13",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"react-i18next": "^13.0.2",
|
|
81
81
|
"react-router-dom": "^6.14.2",
|
|
82
82
|
"react-toastify": "^9.1.3",
|
|
83
|
-
"tycho-storybook": "0.8.
|
|
83
|
+
"tycho-storybook": "0.8.4",
|
|
84
84
|
"wavesurfer-react": "^2.2.2",
|
|
85
85
|
"wavesurfer.js": "^6.6.3"
|
|
86
86
|
},
|