tycho-components 0.21.10 → 0.21.12

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.
@@ -73,7 +73,7 @@
73
73
 
74
74
  @media (max-width: 1366px) {
75
75
  .modal-container {
76
- width: 40% !important;
76
+ width: 40%;
77
77
  }
78
78
  }
79
79
 
@@ -34,21 +34,21 @@
34
34
  .MuiTableCell-head {
35
35
  @include tag-medium-2;
36
36
  color: var(--text-primary);
37
- font-family: 'Lora';
37
+ font-family: "Lora";
38
38
  }
39
39
  }
40
40
 
41
41
  .MuiTableCell-body {
42
42
  @include label-medium-1;
43
43
  color: var(--text-primary);
44
- font-family: 'Work Sans';
44
+ font-family: "Work Sans";
45
45
  cursor: pointer;
46
46
  }
47
47
  }
48
+ }
48
49
 
49
- &.table-striped tbody tr:nth-of-type(odd) {
50
- background-color: var(--layer-hover-1);
51
- }
50
+ .table-striped tbody tr:nth-of-type(odd) {
51
+ background-color: var(--layer-hover-1);
52
52
  }
53
53
 
54
54
  @media (max-width: 768px) {
@@ -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.10",
4
+ "version": "0.21.12",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {