rez-table-listing-mui 1.3.16 → 1.3.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez-table-listing-mui",
3
- "version": "1.3.16",
3
+ "version": "1.3.17",
4
4
  "type": "module",
5
5
  "description": "A rez table listing component built on TanStack Table",
6
6
  "main": "dist/index.js",
@@ -210,3 +210,28 @@
210
210
  }
211
211
  }
212
212
  }
213
+ // Full screen styles fixes
214
+
215
+ :fullscreen {
216
+ width: 100vw !important;
217
+ height: 100vh !important;
218
+ display: flex !important;
219
+ flex-direction: column !important;
220
+ background: var(--white);
221
+ overflow: hidden;
222
+ }
223
+
224
+ :-webkit-full-screen {
225
+ width: 100vw !important;
226
+ height: 100vh !important;
227
+ display: flex !important;
228
+ flex-direction: column !important;
229
+ background: var(--white);
230
+ overflow: hidden;
231
+ }
232
+
233
+ // .ts__table__wrapper.is-fullscreen {
234
+ // height: calc(100vh - 56px);
235
+ // max-height: none;
236
+ // overflow-y: auto;
237
+ // }
@@ -7,7 +7,13 @@ function TableHeadPin<T>({ header }: TableHeaderProps<T>) {
7
7
  {/* <IconPinOutline /> */}
8
8
  </div>
9
9
  ) : (
10
- <div className="ts--head--button" onClick={() => header.column.pin(false)}>
10
+ <div
11
+ className="ts--head--button"
12
+ onClick={(e) => {
13
+ e.stopPropagation();
14
+ header.column.pin(false);
15
+ }}
16
+ >
11
17
  <IconPinOffOutline />
12
18
  </div>
13
19
  );
@@ -71,6 +71,17 @@ function Topbar<T>({
71
71
  table.setColumnOrder(columnOrder);
72
72
  }, [columnOrder]);
73
73
 
74
+ useEffect(() => {
75
+ if (isFullscreen) {
76
+ // Close all popovers when fullscreen is enabled
77
+ setLayoutAnchorEl(null);
78
+ setSortAnchorEl(null);
79
+ setColumnAnchorEl(null);
80
+ setViewMoreAnchorEl(null);
81
+ setShowColumnHiding(false);
82
+ }
83
+ }, [isFullscreen]);
84
+
74
85
  const {
75
86
  leftSideComponent,
76
87
  rightSideComponent,