aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/MainView.tsx
diff options
context:
space:
mode:
authoranika-ahluwalia <anika.ahluwalia@gmail.com>2020-07-30 16:16:27 -0500
committeranika-ahluwalia <anika.ahluwalia@gmail.com>2020-07-30 16:16:27 -0500
commitda018ee4a1aa1b6f7f5e7c6cc13cb3d445033350 (patch)
tree1cd986d9be8bdbf1e1db2d623a7903cefa64ed66 /src/client/views/MainView.tsx
parent24c59f537e963a991b633afb21471b1571ad4f0a (diff)
collection menu and properties adjustments
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r--src/client/views/MainView.tsx13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx
index 825a75afa..a485d533c 100644
--- a/src/client/views/MainView.tsx
+++ b/src/client/views/MainView.tsx
@@ -172,7 +172,7 @@ export class MainView extends React.Component {
fa.faFillDrip, fa.faLink, fa.faUnlink, fa.faBold, fa.faItalic, fa.faChevronLeft, fa.faUnderline, fa.faStrikethrough, fa.faSuperscript, fa.faSubscript,
fa.faIndent, fa.faEyeDropper, fa.faPaintRoller, fa.faBars, fa.faBrush, fa.faShapes, fa.faEllipsisH, fa.faHandPaper, fa.faMap, fa.faUser, faHireAHelper,
fa.faDesktop, fa.faTrashRestore, fa.faUsers, fa.faWrench, fa.faCog, fa.faMap, fa.faBellSlash, fa.faExpandAlt, fa.faArchive, fa.faBezierCurve, fa.faCircle,
- fa.faLongArrowAltRight, fa.faPenFancy, fa.faAngleDoubleRight);
+ fa.faLongArrowAltRight, fa.faPenFancy, fa.faAngleDoubleRight, fa.faExpand);
this.initEventListeners();
this.initAuthenticationRouters();
}
@@ -420,7 +420,7 @@ export class MainView extends React.Component {
@action
onPointerMove = (e: PointerEvent) => {
if (this.propertiesDownX) {
- this._propertiesWidth = this._propertiesWidth + (this.propertiesDownX - e.screenX) * .5;
+ this._propertiesWidth = this._propertiesWidth + (this.propertiesDownX - e.screenX);
if (this._propertiesWidth < 150) {
this._propertiesWidth = 0;
this.propertiesDownX = undefined;
@@ -446,7 +446,7 @@ export class MainView extends React.Component {
this._propertiesWidth = 0;
}
} else {
- this._propertiesWidth = this._propertiesWidth + (this.propertiesDownX - e.screenX) * .5;
+ this._propertiesWidth = this._propertiesWidth + (this.propertiesDownX - e.screenX);
if (this._propertiesWidth < 150) {
this._propertiesWidth = 0;
} else if (this._propertiesWidth > 400) {
@@ -573,7 +573,12 @@ export class MainView extends React.Component {
case "Settings": this.sidebarContent.proto = SettingsManager.Instance.open(); break;
case "Sharing": this.sidebarContent.proto = GroupManager.Instance.open(); break;
}
- MainView.expandFlyout();
+ if (str === "Settings" || str === "Sharing" || str === "Help") {
+ this.panelContent = "none";
+ this.flyoutWidth = 0;
+ } else {
+ MainView.expandFlyout();
+ }
}
return true;
}