From e1707fb76a991d04797a8d97ca34c55db71899cd Mon Sep 17 00:00:00 2001 From: geireann Date: Sat, 31 Jul 2021 05:38:08 -0400 Subject: tab scrollable --- src/client/views/topbar/TopBar.scss | 52 +++++++++++++++++--------------- src/client/views/topbar/TopBar.tsx | 22 ++++++++------ src/client/views/topbar/TopBarButton.tsx | 10 ------ 3 files changed, 40 insertions(+), 44 deletions(-) delete mode 100644 src/client/views/topbar/TopBarButton.tsx (limited to 'src/client/views/topbar') 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
+
+
+ {`${Doc.CurrentUserEmail}`} +
window.location.assign(Utils.prepend("/logout"))}> + Logoff +
+
+