diff --git a/src/ui/web/css/room.css b/src/ui/web/css/room.css index 4ed19c35..827b3b1b 100644 --- a/src/ui/web/css/room.css +++ b/src/ui/web/css/room.css @@ -24,13 +24,8 @@ limitations under the License. align-items: center; } -.RoomHeader > *:last-child { - margin-right: 0; -} - -.RoomHeader > * { - margin-right: 10px; - flex: 0 0 auto; +.RoomHeader h2 { + flex: 1; } .RoomHeader button { diff --git a/src/ui/web/css/themes/element/icons/chevron-left.svg b/src/ui/web/css/themes/element/icons/chevron-left.svg new file mode 100644 index 00000000..c686cf88 --- /dev/null +++ b/src/ui/web/css/themes/element/icons/chevron-left.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/ui/web/css/themes/element/theme.css b/src/ui/web/css/themes/element/theme.css index b099d83b..f347fc46 100644 --- a/src/ui/web/css/themes/element/theme.css +++ b/src/ui/web/css/themes/element/theme.css @@ -352,8 +352,11 @@ a { } .RoomHeader { - background: rgba(245, 245, 245, 0.90); - padding: 10px; + box-sizing: border-box; + height: 58px; /* 12 + 36 + 12 to align with filter field + margin */ + background: white; + padding: 0 16px; + border-bottom: 1px solid rgba(245, 245, 245, 0.90); } .RoomHeader h2 { @@ -361,23 +364,13 @@ a { font-weight: 600; } -.RoomHeader button { - width: 40px; - height: 40px; - font-size: 1.5em; - padding: 0; - background: white; - border: none; - font-weight: bolder; - line-height: 40px; +.RoomHeader > :not(:first-child) { + margin-left: 8px; } -.back::before { - content: "☰"; -} - -.more::before { - content: "⋮"; +button.back { + background-image: url('icons/chevron-left.svg'); + background-position-x: 10px; } .RoomHeader .topic { diff --git a/src/ui/web/session/room/RoomView.js b/src/ui/web/session/room/RoomView.js index 3f9b9bce..9eeeb554 100644 --- a/src/ui/web/session/room/RoomView.js +++ b/src/ui/web/session/room/RoomView.js @@ -26,7 +26,7 @@ export class RoomView extends TemplateView { return t.div({className: "RoomView"}, [ t.div({className: "TimelinePanel"}, [ t.div({className: "RoomHeader"}, [ - t.button({className: "back", onClick: () => vm.close()}), + t.button({className: "utility back", onClick: () => vm.close()}), renderAvatar(t, vm, 32), t.div({className: "room-description"}, [ t.h2(vm => vm.name),