aboutsummaryrefslogtreecommitdiff
path: root/src/client/views
diff options
context:
space:
mode:
authorgeireann <geireann.lindfield@gmail.com>2021-07-31 05:38:08 -0400
committergeireann <geireann.lindfield@gmail.com>2021-07-31 05:38:08 -0400
commite1707fb76a991d04797a8d97ca34c55db71899cd (patch)
tree7d01fbd326eb9d1b52663fef44cc23b7ed3fbb63 /src/client/views
parent98a5d3e333f844b8eac7e8bd717e558d3355f353 (diff)
tab scrollable
Diffstat (limited to 'src/client/views')
-rw-r--r--src/client/views/MainView.scss4
-rw-r--r--src/client/views/topbar/TopBar.scss52
-rw-r--r--src/client/views/topbar/TopBar.tsx22
-rw-r--r--src/client/views/topbar/TopBarButton.tsx10
4 files changed, 42 insertions, 46 deletions
diff --git a/src/client/views/MainView.scss b/src/client/views/MainView.scss
index ba1c91720..d913f2069 100644
--- a/src/client/views/MainView.scss
+++ b/src/client/views/MainView.scss
@@ -117,7 +117,7 @@
.mainView-propertiesDragger {
//background-color: rgb(140, 139, 139);
- background-color: $medium-gray;
+ background-color: $light-gray;
height: 55px;
width: 17px;
position: absolute;
@@ -165,7 +165,7 @@
left: 0;
position: absolute;
z-index: 2;
- background-color: $medium-gray;
+ background-color: $light-gray;
.editable-title {
background-color: $light-gray;
}
diff --git a/src/client/views/topbar/TopBar.scss b/src/client/views/topbar/TopBar.scss
index e2d27d5a6..ce6636080 100644
--- a/src/client/views/topbar/TopBar.scss
+++ b/src/client/views/topbar/TopBar.scss
@@ -75,6 +75,20 @@
display: flex;
justify-content: flex-end;
+
+
+
+
+ }
+
+ .topbar-left {
+ grid-column: 1;
+ color: black;
+ font-family: 'Roboto';
+ position: relative;
+ display: flex;
+ width: 450;
+
.topbar-lozenge-user,
.topbar-lozenge {
height: 23;
@@ -89,20 +103,6 @@
align-items: center;
border: white 1px solid;
- .topbar-logoff {
- border-radius: 3px;
- background: olivedrab;
- color: white;
- display: none;
- margin-left: 5px;
- padding: 1px 2px 1px 2px;
- cursor: pointer;
- }
-
- .topbar-logoff {
- background: red;
- }
-
.topbar-dashSelect {
border: none;
background-color: transparent;
@@ -117,21 +117,25 @@
}
}
+ .topbar-logoff {
+ border-radius: 3px;
+ background: olivedrab;
+ color: white;
+ display: none;
+ margin-left: 5px;
+ padding: 1px 2px 1px 2px;
+ cursor: pointer;
+ }
+
+ .topbar-logoff {
+ background: red;
+ }
+
.topbar-lozenge-user:hover {
.topbar-logoff {
display: inline-block;
}
}
-
- }
-
- .topbar-left {
- grid-column: 1;
- color: black;
- font-family: 'Roboto';
- position: relative;
- display: flex;
- width: 450;
}
.topbar-barChild {
diff --git a/src/client/views/topbar/TopBar.tsx b/src/client/views/topbar/TopBar.tsx
index 65da717f8..02b597078 100644
--- a/src/client/views/topbar/TopBar.tsx
+++ b/src/client/views/topbar/TopBar.tsx
@@ -24,6 +24,14 @@ export class TopBar extends React.Component {
//TODO:glr Add support for light / dark mode
<div style={{ pointerEvents: "all" }} className="topbar-container">
<div className="topbar-bar" style={{ background: Colors.DARK_GRAY, borderBottom: Borders.STANDARD }}>
+ <div className="topbar-left">
+ <div className="topbar-lozenge-user">
+ {`${Doc.CurrentUserEmail}`}
+ <div className="topbar-logoff" onClick={() => window.location.assign(Utils.prepend("/logout"))}>
+ Logoff
+ </div>
+ </div>
+ </div>
<div className="topbar-center" >
<div className="topbar-lozenge-dashboard">
<select className="topbar-dashSelect" onChange={e => CurrentUserUtils.openDashboard(Doc.UserDoc(), myDashboards[Number(e.target.value)])}
@@ -34,11 +42,11 @@ export class TopBar extends React.Component {
<div className="topbar-dashboards">
<div className="topbar-icon" onClick={undoBatch(() => CurrentUserUtils.createNewDashboard(Doc.UserDoc()))}
style={{ color: Colors.WHITE }}>
- <FontAwesomeIcon icon="plus"></FontAwesomeIcon>
+ <FontAwesomeIcon icon="plus"></FontAwesomeIcon>{"New"}
</div>
<div className="topbar-icon" onClick={undoBatch(() => CurrentUserUtils.snapshotDashboard(Doc.UserDoc()))}
style={{ color: Colors.WHITE }}>
- <FontAwesomeIcon icon="camera"></FontAwesomeIcon>
+ <FontAwesomeIcon icon="camera"></FontAwesomeIcon>{"Snapshot"}
</div>
</div>
</div>
@@ -52,15 +60,9 @@ export class TopBar extends React.Component {
style={{ color: Colors.WHITE }}>
<FontAwesomeIcon icon="cog"></FontAwesomeIcon>
</div>
- <div className="topbar-lozenge-user">
- {`${Doc.CurrentUserEmail}`}
- <div className="topbar-logoff" onClick={() => window.location.assign(Utils.prepend("/logout"))}>
- Logoff
- </div>
- </div>
- </div>
- </div >
+ </div>
+ </div>
</div >
);
}
diff --git a/src/client/views/topbar/TopBarButton.tsx b/src/client/views/topbar/TopBarButton.tsx
deleted file mode 100644
index 0d3d2a8d1..000000000
--- a/src/client/views/topbar/TopBarButton.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import React from "react";
-
-export interface IButtonProps {
- icon?: JSX.Element;
- text?: String;
-}
-
-export class TopBarButton implements IButtonProps {
-
-}