From 6e3e0a144746abb3fb9de5e81a987c70ad7360e0 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sun, 25 Oct 2015 01:52:28 +0000 Subject: [PATCH] implement new roomheader --- .../vector/css/molecules/MessageComposer.css | 2 +- src/skins/vector/css/molecules/RoomHeader.css | 27 ++++++++-- src/skins/vector/img/search.png | Bin 854 -> 742 bytes src/skins/vector/img/settings.png | Bin 1003 -> 391 bytes .../vector/views/molecules/RoomHeader.js | 50 ++++++++++-------- 5 files changed, 51 insertions(+), 28 deletions(-) diff --git a/src/skins/vector/css/molecules/MessageComposer.css b/src/skins/vector/css/molecules/MessageComposer.css index ab76c5ac..a74777bf 100644 --- a/src/skins/vector/css/molecules/MessageComposer.css +++ b/src/skins/vector/css/molecules/MessageComposer.css @@ -85,7 +85,7 @@ limitations under the License. .mx_MessageComposer_call { padding-right: 10px; - padding-top: 3px; + padding-top: 4px; } .mx_MessageComposer_upload img { diff --git a/src/skins/vector/css/molecules/RoomHeader.css b/src/skins/vector/css/molecules/RoomHeader.css index 80b7c436..312d56a7 100644 --- a/src/skins/vector/css/molecules/RoomHeader.css +++ b/src/skins/vector/css/molecules/RoomHeader.css @@ -71,8 +71,7 @@ limitations under the License. } .mx_RoomHeader_rightRow { - height: 48px; - margin-top: 18px; + margin-top: 32px; background-color: #fff; -webkit-box-ordinal-group: 3; @@ -98,6 +97,7 @@ limitations under the License. } .mx_RoomHeader_name { + cursor: pointer; vertical-align: middle; height: 28px; color: #454545; @@ -108,6 +108,26 @@ limitations under the License. text-overflow: ellipsis; } +.mx_RoomHeader_nametext { + display: inline-block; +} + +.mx_RoomHeader_settingsButton { + display: inline-block; + visibility: hidden; + position: relative; + bottom: 10px; + left: 4px; +} + +.mx_RoomHeader_name:hover { + color: #76cfa6; +} + +.mx_RoomHeader_name:hover .mx_RoomHeader_settingsButton { + visibility: visible; +} + .mx_RoomHeader_nameEditing { padding-left: 16px; padding-right: 16px; @@ -151,7 +171,6 @@ limitations under the License. } .mx_RoomHeader_button { - height: 48px; display: table-cell; vertical-align: middle; padding-left: 8px; @@ -168,4 +187,4 @@ limitations under the License. .mx_RoomHeader_voipButtons { margin-top: 18px; -} \ No newline at end of file +} diff --git a/src/skins/vector/img/search.png b/src/skins/vector/img/search.png index d2c99855d079d3491605e43ee0e569190dac7e1f..2f98d2904822b67ecfd0096434d22d17443c7e03 100644 GIT binary patch literal 742 zcmVPx%ph-kQR5%f(R7*%zQ54<#oa^T)BqiF%iDeX7U}YK-hYn0$GZ6pnHp!sxo z2MtoRiL)rACTC*r*u3SyG~6?UqYZ%@g(#pH7$%w3gak1~ z0P7iWBLI2Gg4=ER70>KBPVus-x8GL|fZM=Qoh^BlL$TtzKxd9bQGqOaTXvV;iskL= zCDW$_E=Ou=tv~yVimSJS2Bzw zwdS0jL&Of0c%re-pJF$%$09vN?hpbeF72%vwi9mg#a*T2h};Wk6}V{xKwKsfymb>e z;;e=MVY?%zL4iO?3_Rr~aKaTCWHx(|VAotwZ3mvNM+yTG+)g|7OTcGi9P z=R<~N1`7V@mLaCq>|o?myg~m~H&HCk2JBN|9*D)GYjJr`O;{k_0kW!0-Cj|`ZLaU{ z&eLC)#fF@A)9C60H18~X0?aSxS0&VY16>>3#7zUfTmz|+Kwd+lQ%wQi5hv~PHI0xB zFS?HlprcIqNMDFy$uqBs;yoneGlT*8sBp7x{?Cfk8x>l(8|U%VBEzfZo)JHorhX=V zj9*M6(7Av=Em2wps5o02r0SPSF~X!E4o-eue3+S@OmmCjv%30BQ{k&J&8PvS(ER%~ zSE4uaH`AY+tvH!%irL_nGD)xr4Q^KoP9k7N(w9)1dGO4_Kbb~%Y<%uJMgk9^pmqw& z0{x2$zr9PTT`E*m^tW?!ZuvbT_9J1Pf%0i2KVj{s{r`2+=ph>Vy0bv2Y6ci@?HTF# Y4jDfV9bl4!EC2ui07*qoM6N<$g2TyJ%K!iX literal 854 zcmV-c1F8IpP)cQq$4R<&%=91NKqB=7sT`llieygY9L1H^L{Y@2_l5A;Rz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3YCTRilhd+kpsYGGPEJd!?Tc1v55I*^rz=MjQRP^f8X)G#t)UdtH zLa8hojYuf?l>=6TQlTYO8@z)V>7CP;Y_{P;Hg^;JT!x< zV*4OLzxJGy5f#^+O!>GTn9D9p+WA^;t64NSFWOjgq0U++i?B=&U&&3t%~N_?YzW{H zs9;>tCw_@Z^_e)hAepMx$Qn-Fp;f!5&-z%n4;hIK1&Z?nI!5Ati!0#WZ=$)(R0SCAn*VH002ovPDHLkV1g(4+Cancel save_button =
Save Changes
} else { + // name = -
- +
+
{ this.props.room.name }
+
+ +
if (topic) topic_el =
{ topic.getContent().topic }
; - settings_button = ( -
- -
- ); } var roomAvatar = null; @@ -130,12 +128,23 @@ module.exports = React.createClass({ ); } - if (activeCall && activeCall.type == "video") { - zoom_button = ( -
- Fullscreen -
- ); + var zoom_button, video_button, voice_button; + if (activeCall) { + if (activeCall.type == "video") { + zoom_button = ( +
+ Fullscreen +
+ ); + } + video_button = +
+ Video call +
; + voice_button = +
+ VoIP call +
; } header = @@ -153,16 +162,11 @@ module.exports = React.createClass({ {cancel_button} {save_button}
- { settings_button } + { video_button } + { voice_button } { zoom_button } -
- Search -
-
- Video call -
-
- VoIP call +
+ Search