                 </Col>
             </Row>
             <Row>
-                <Col md={12}>
+                <Col md={12} style={padding:'0px 2px 0px 2px'}>
                     <Panel style={@chat_log_style} ref='log_container' onScroll={@on_scroll} >
                         <ChatLog
                             messages     = {@props.messages}

    getInitialState: ->
        input : ''

    keydown : (e) ->
        # TODO: Add timeout component to is_typing
        if e.keyCode==27 # ESC
            e.preventDefault()
            @clear_input()
        else if e.keyCode==13 and not e.shiftKey # 13: enter key
            @scroll_to_bottom()
            e.preventDefault()
            mesg = @refs.input.getValue()
            # block sending empty messages
            if mesg.length? and mesg.trim().length >= 1
                @props.actions.send_chat(mesg)
                @clear_input()
        else if e.keyCode==38 and @refs.input.getValue() == ''
            @props.actions.set_to_last_input()

    clear_input: ->
        @props.actions.set_input('')

    render_input: ->
        tip = <span>
            You may enter (Github flavored) markdown here and include Latex mathematics in $ signs.  In particular, use # for headings, > for block quotes, *'s for italic text, **'s for bold text, - at the beginning of a line for lists, back ticks ` for code, and URL's will automatically become links.   Press shift+enter for a newline without submitting your chat. Double click to edit past chats.
        </span>

        return <div>
            <Input
                autoFocus
                rows      = 4
                type      = 'textarea'
                ref       = 'input'
                onKeyDown = {@keydown}
                value     = {@props.input}
                onClick   = {=>@props.redux.getActions('file_use').mark_file(@props.project_id, @props.path, 'read')}
                onChange  = {(value)=>@props.actions.set_input(@refs.input.getValue())}
                />
            <div style={marginTop: '-12px', marginBottom: '15px', color:'#666'}>
                <Tip title='Use Markdown' tip={tip}>
                    Shift+Enter for newline.
                    Double click to edit past chats.
                    Format using <a href='https://help.github.com/articles/markdown-basics/' target='_blank'>Markdown</a>.
                    Emoticons: {misc.emoticons}.
                </Tip>
            </div>
        </div>

    chat_log_style:
        overflowY    : "auto"

        paddingRight : "10px"

    chat_input_style:
        margin       : "0"
        padding      : "4px 7px 4px 7px"
        marginTop    : "5px"

    is_at_bottom: ->
