Skip to content

Commit

Permalink
Fix sidebar positioning, add empty topic message
Browse files Browse the repository at this point in the history
  • Loading branch information
gdpelican committed Sep 4, 2015
1 parent 28b3a69 commit 3eb245a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
@@ -1,6 +1,9 @@
{{#menu-panel visible=visible}}
<section class="babble-chat">
<ul class="babble-posts">
{{#unless topic.postStream.posts}}
<li class="babble-empty-topic-message">{{i18n 'babble.empty_topic_message'}}</li>
{{/unless}}
{{#each post in topic.postStream.posts}}
{{babble-post post=post topic=topic}}
{{/each}}
Expand Down
7 changes: 7 additions & 0 deletions assets/stylesheets/babble.scss
Expand Up @@ -8,6 +8,12 @@
overflow: auto;
}

.babble-empty-topic-message {
color: #ccc;
text-align: center;
padding-top: 25%;
}

.babble-post .babble-post-avatar a,
.babble-post .post-date {
background-color: transparent !important; /* sorry mom. */
Expand Down Expand Up @@ -107,6 +113,7 @@ li.babble-post .babble-post-content a.mention {
.slide-in { // styles for slide-in menu
box-sizing: border-box;
padding-bottom: 100px;
min-height: 100vh;

.panel-body {
position: relative;
Expand Down
1 change: 1 addition & 0 deletions config/locales/client.en.yml
Expand Up @@ -5,3 +5,4 @@ en:
send: "Send"
title: "Shoutbox!"
error_message: "Please enter a message!"
empty_topic_message: "No messages yet! Enter one below to get started."

0 comments on commit 3eb245a

Please sign in to comment.