Skip to content

Commit b53f704

Browse files
committed
chatbox styles and tabs and scrolling
1 parent 8f68065 commit b53f704

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

app/assets/javascripts/backbone/helpers/channels.js.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Kandan.Helpers.Channels
1818

1919
@scrollToLatestMessage: (channelId)->
2020
console.log("scrolling to last message");
21-
$('document').scrollTop($('docoument').height())
21+
$('document').scrollTop($('document').height()+900)
2222
#@channel_activities_el(channelId).parent().scrollTop(100000)
2323

2424
@currentScrollPosition: (channelId)->

app/assets/javascripts/backbone/kandan.js.coffee

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ window.Kandan =
5858
initChatArea: (channels)->
5959
chatArea = new Kandan.Views.ChatArea({channels: channels})
6060
$(".main-area").html(chatArea.render().el)
61+
$(document).scrollTop($(document).height()+9000)
62+
6163

6264
bindEventCallbacks: ()->
6365
$(document).bind 'changeData', (element, name, value)->

app/assets/stylesheets/_base.sass

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
padding: 0 5px
2222
+box-shadow(inset 0px -7px 6px -5px #3a4547)
2323
border-bottom: 1px solid #FFF
24+
margin-top: -2px
2425

2526
.user_menu_link
2627
float: right
@@ -68,11 +69,13 @@
6869

6970
html
7071
+full-height
72+
width: 100%
7173

7274
body
7375
background: $page-bg url(image_path('page_bg.png')) repeat
7476
height: 100%
7577
min-height: 100%
78+
width: 100%
7679
font-size: 13px
7780
font-family: 'PT Sans', sans-serif
7881

app/assets/stylesheets/_chat_area.sass

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ html body .ui-tabs .ui-tabs-nav li
9393

9494
.chatbox
9595
+border-bottom-radius(4px)
96-
+background-image(linear-gradient($chatbox-bg-1, $chatbox-bg-2))
9796
+box-shadow(5px 0px 5px -3px #cccccc, -5px 0px 5px -3px #cccccc, 0px 5px 5px 0px #cccccc)
9897
float: left
9998
border-top: 1px solid #EBEFF1
10099
padding: 10px 0px 10px 10px
101100
width: 77%
102101
position: fixed
103102
bottom: 0px
103+
margin-bottom: 20px
104104
textarea
105105
+border-top-left-radius(4px)
106106
+border-bottom-left-radius(4px)

0 commit comments

Comments
 (0)