aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMonika Hedman <monika_hedman@brown.edu>2019-04-02 16:51:08 -0400
committerMonika Hedman <monika_hedman@brown.edu>2019-04-02 16:51:08 -0400
commitdd9d087b62545a7a57ea2651eace72f851127623 (patch)
treefc28794c5775ce6c7faabf2d6a32a016b127fbb1 /src
parent7fdf7396a8bdb2e4f8c3b27ca99a36727d85adae (diff)
drag working
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/DocumentView.scss22
-rw-r--r--src/client/views/nodes/DocumentView.tsx10
2 files changed, 17 insertions, 15 deletions
diff --git a/src/client/views/nodes/DocumentView.scss b/src/client/views/nodes/DocumentView.scss
index 23e072344..127a6b535 100644
--- a/src/client/views/nodes/DocumentView.scss
+++ b/src/client/views/nodes/DocumentView.scss
@@ -25,17 +25,17 @@
overflow-y: scroll;
height: calc(100% - 20px);
}
+}
- .minimized-box {
- height: 10px;
- width: 10px;
- border-radius: 2px;
- background: $dark-color
- }
+.minimized-box {
+ height: 10px;
+ width: 10px;
+ border-radius: 2px;
+ background: $dark-color
+}
- .minimized-box:hover {
- background: $main-accent;
- transform: scale(1.15);
- cursor: pointer;
- }
+.minimized-box:hover {
+ background: $main-accent;
+ transform: scale(1.15);
+ cursor: pointer;
} \ No newline at end of file
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 713c12975..c4f329357 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -383,10 +383,12 @@ export class DocumentView extends React.Component<DocumentViewProps> {
e.preventDefault();
//for testing purposes
- ContextMenu.Instance.addItem({
- description: "Minimize",
- event: this.minimize
- });
+ if (!this.minimized) {
+ ContextMenu.Instance.addItem({
+ description: "Minimize",
+ event: this.minimize
+ });
+ }
ContextMenu.Instance.addItem({
description: "Full Screen",
event: this.fullScreenClicked