diff options
| author | Lionel Han <47760119+IGoByJoe@users.noreply.github.com> | 2020-06-29 23:14:41 -0700 |
|---|---|---|
| committer | Lionel Han <47760119+IGoByJoe@users.noreply.github.com> | 2020-06-29 23:14:41 -0700 |
| commit | 917098c107052f825e0f9b96bdb0706371862b90 (patch) | |
| tree | 4b6af89c6a11c32974ab3b6aafdf74cc8b992220 /src/mobile | |
| parent | b9f4d13ffa8cd20ed89be16f471a1fab760ba2c0 (diff) | |
ink fixes
Diffstat (limited to 'src/mobile')
| -rw-r--r-- | src/mobile/MobileInterface.scss | 5 | ||||
| -rw-r--r-- | src/mobile/MobileInterface.tsx | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/mobile/MobileInterface.scss b/src/mobile/MobileInterface.scss index ee39d4f50..4b32c3da0 100644 --- a/src/mobile/MobileInterface.scss +++ b/src/mobile/MobileInterface.scss @@ -401,14 +401,15 @@ body { .colorSelector { position: absolute; top: 550px; - left: 300px; + left: 280px; transform: translate(-50%, 0); z-index: 100; display: inline-flex; width: max-content; height: max-content; pointer-events: all; - font-size: 90px; + font-size: 80px; + user-select: none; } // Menu buttons for toggling between list and icon view diff --git a/src/mobile/MobileInterface.tsx b/src/mobile/MobileInterface.tsx index 7ff82ccc4..54461c4cc 100644 --- a/src/mobile/MobileInterface.tsx +++ b/src/mobile/MobileInterface.tsx @@ -107,12 +107,18 @@ export class MobileInterface extends React.Component { this.renderView = renderView; // Ensures that switching to home is not registed UndoManager.undoStack.length = 0; + UndoManager.redoStack.length = 0; } // For toggling the hamburger menu @action - toggleSidebar = () => this.sidebarActive = !this.sidebarActive + toggleSidebar = () => { + this.sidebarActive = !this.sidebarActive; + if (this._ink) { + this.onSwitchInking(); + } + } /** * Method called when 'Library' button is pressed on the home screen */ |
