+ return
{this.props.content}
@@ -60,9 +61,8 @@ let Sidebar = create({
},
render: function() {
- let rooms = ["Neo", "version 4", "Codename", "Iris", "Let's All Love Lain", "Very long room name abcdefghijklmnopqrstuvwxyz"]
return
-
+
}
})
diff --git a/public/scss/style.scss b/public/scss/style.scss
index 89ffe1f..9f267af 100644
--- a/public/scss/style.scss
+++ b/public/scss/style.scss
@@ -87,6 +87,7 @@ body {
.list {
background: $bg0;
+ position: relative;
div {
cursor: pointer;
@@ -94,6 +95,8 @@ body {
}
.roomListItem {
+ position: absolute;
+ top: 0;
height: 2rem + 2* $spacing;
display: grid;
grid-template-columns: 2rem + 2*$spacing - 0.2rem auto;
@@ -101,6 +104,8 @@ body {
width: 100%;
box-sizing: border-box;
border-bottom: 1px solid lighten($bg1, 3);
+ transition: 3s;
+ background: $bg0;
&:hover {
background: $bg1;