diff options
| author | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-08-18 17:16:05 +0530 |
|---|---|---|
| committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-08-18 17:16:05 +0530 |
| commit | 7ed0e1b722767edbd6a3a6e2ca98a8a8749025e2 (patch) | |
| tree | 5fd4b397e049a3abfc8a5dc20022c4e134b6bf2d /src/client/views/collections/CollectionMenu.tsx | |
| parent | 2e2ac8116f7ba41c8652ba1ca02ccdc4ca11ed03 (diff) | |
fixed grid view freezing error
Diffstat (limited to 'src/client/views/collections/CollectionMenu.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionMenu.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionMenu.tsx b/src/client/views/collections/CollectionMenu.tsx index eea8a3158..3c0f65ff8 100644 --- a/src/client/views/collections/CollectionMenu.tsx +++ b/src/client/views/collections/CollectionMenu.tsx @@ -985,6 +985,7 @@ export class CollectionGridViewChrome extends React.Component<CollectionMenuProp if (!this.decrementLimitReached) { this.entered && (this.document.gridNumCols as number)++; undoBatch(() => this.document.gridNumCols = this.numCols - 1)(); + if (this.numCols === 1) this.decrementLimitReached = true; } this.entered = false; } @@ -1036,7 +1037,7 @@ export class CollectionGridViewChrome extends React.Component<CollectionMenuProp render() { return ( <div className="collectionGridViewChrome-cont" > - <span className="grid-control" style={{ width: this.resize ? "25%" : "30%" }}> + <span className="grid-control" style={{ width: this.resize ? "25%" : "30%", color: "black" }}> <span className="grid-icon"> <FontAwesomeIcon icon="columns" size="1x" /> </span> |
