From fcc75a92643f35955a1e0bbe829e96b0e76c8a4e Mon Sep 17 00:00:00 2001 From: geireann Date: Sat, 31 Jul 2021 08:09:45 -0400 Subject: updates ready for sprint (almost) --- src/client/views/topbar/TopBar.scss | 52 ++++++++++++++++++------------------- src/client/views/topbar/TopBar.tsx | 34 ++++++++++++------------ 2 files changed, 42 insertions(+), 44 deletions(-) (limited to 'src/client/views/topbar') diff --git a/src/client/views/topbar/TopBar.scss b/src/client/views/topbar/TopBar.scss index ce6636080..adb968948 100644 --- a/src/client/views/topbar/TopBar.scss +++ b/src/client/views/topbar/TopBar.scss @@ -20,11 +20,34 @@ align-items: center; background-color: $dark-gray; + .topBar-icon { + cursor: pointer; + font-size: 12px; + width: fit-content; + display: flex; + justify-content: center; + gap: 4px; + align-items: center; + justify-self: center; + align-self: center; + border-radius: 5px; + padding: 5px; + transition: linear 0.1s; + color: $black; + background-color: $light-gray; + } + + .topBar-icon:hover { + background-color: $light-blue; + } + + .topbar-center { grid-column: 2; display: inline-flex; justify-content: center; align-items: center; + gap: 5px; .topbar-lozenge-dashboard { display: flex; @@ -48,37 +71,13 @@ } } - .topBar-icon { - color: black; - cursor: pointer; - font-size: 15px; - height: 30; - width: 30; - display: flex; - justify-content: center; - align-items: center; - margin-right: 5px; - justify-self: center; - align-self: center; - border-radius: 100%; - transition: linear 0.1s; - background-color: #92adb900; - } - - .topBar-icon:hover { - background-color: rgba(0, 0, 0, 0.15); - } .topbar-right { grid-column: 3; position: relative; display: flex; justify-content: flex-end; - - - - - + gap: 5px; } .topbar-left { @@ -88,6 +87,7 @@ position: relative; display: flex; width: 450; + gap: 5px; .topbar-lozenge-user, .topbar-lozenge { @@ -98,10 +98,10 @@ font-weight: 400; padding: 4px; align-self: center; + margin-left: 7px; margin-right: 7px; display: flex; align-items: center; - border: white 1px solid; .topbar-dashSelect { border: none; diff --git a/src/client/views/topbar/TopBar.tsx b/src/client/views/topbar/TopBar.tsx index 02b597078..6e4d4fe15 100644 --- a/src/client/views/topbar/TopBar.tsx +++ b/src/client/views/topbar/TopBar.tsx @@ -27,9 +27,9 @@ export class TopBar extends React.Component {
{`${Doc.CurrentUserEmail}`} -
window.location.assign(Utils.prepend("/logout"))}> - Logoff -
+
+
window.location.assign(Utils.prepend("/logout"))}> + {"Logoff"}
@@ -39,26 +39,24 @@ export class TopBar extends React.Component { style={{ color: Colors.WHITE }}> {myDashboards.map((dash, i) => )} -
-
CurrentUserUtils.createNewDashboard(Doc.UserDoc()))} - style={{ color: Colors.WHITE }}> - {"New"} -
-
CurrentUserUtils.snapshotDashboard(Doc.UserDoc()))} - style={{ color: Colors.WHITE }}> - {"Snapshot"} -
+
+
+
CurrentUserUtils.createNewDashboard(Doc.UserDoc()))} + > + {"New"}
+ {Doc.UserDoc().noviceMode ? (null) :
CurrentUserUtils.snapshotDashboard(Doc.UserDoc()))} + > + {"Snapshot"} +
}
-
- +
+ {"Help"}
-
SettingsManager.Instance.open()} - style={{ color: Colors.WHITE }}> - +
SettingsManager.Instance.open()}> + {"Settings"}
-- cgit v1.2.3-70-g09d2