@flozy/editor 5.0.8 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -157,7 +157,7 @@ const SearchAndDocList = ({
157
157
  width: "3px !important"
158
158
  }
159
159
  },
160
- children: [mapData?.length !== 0 ? mapData?.map((doc, index) => {
160
+ children: [mapData?.map((doc, index) => {
161
161
  const title = doc?.title?.trim() === "" ? 'Untitled' : doc?.title;
162
162
  return /*#__PURE__*/_jsx(Grid, {
163
163
  item: true,
@@ -168,6 +168,7 @@ const SearchAndDocList = ({
168
168
  borderRadius: '8px',
169
169
  padding: '6px 10px',
170
170
  cursor: 'pointer',
171
+ display: mapData?.length !== 0 ? 'flex' : 'none',
171
172
  backgroundColor: theme?.palette?.editor?.inputFieldBgColor,
172
173
  '@media only screen and (min-width: 350px) and (max-width: 599px)': {
173
174
  overflow: 'hidden'
@@ -240,12 +241,14 @@ const SearchAndDocList = ({
240
241
  }) : null]
241
242
  })
242
243
  }, doc.id);
243
- }) : /*#__PURE__*/_jsx(Grid, {
244
+ }), /*#__PURE__*/_jsx(Grid, {
244
245
  item: true,
245
246
  xs: 12,
246
247
  children: /*#__PURE__*/_jsx(Typography, {
247
- align: "center",
248
248
  sx: {
249
+ display: mapData?.length === 0 ? 'flex' : 'none',
250
+ alignItems: "center",
251
+ justifyContent: "center",
249
252
  color: theme?.palette?.text?.secondary,
250
253
  fontSize: '12px',
251
254
  padding: '20px',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "5.0.8",
3
+ "version": "5.1.0",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"