diff --git a/app/assets/javascripts/app/controllers/ticket_zoom/article_new.coffee b/app/assets/javascripts/app/controllers/ticket_zoom/article_new.coffee index 92a05b5ff..48b9d3b82 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom/article_new.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom/article_new.coffee @@ -18,8 +18,8 @@ class App.TicketZoomArticleNew extends App.Controller 'click .js-articleTypeItem': 'selectArticleType' 'click .js-selectedArticleType': 'showSelectableArticleType' 'click .js-mail-inputs': 'stopPropagation' - 'click .js-writeArea': 'stopPropagation' - 'click .list-entry-type div': 'change_type' + 'click .js-writeArea': 'propagateOpenTextarea' + 'click .list-entry-type div': 'changeType' 'focus .js-textarea': 'openTextarea' constructor: -> @@ -216,9 +216,8 @@ class App.TicketZoomArticleNew extends App.Controller ) @subscribeIdTextModule = ticket.subscribe( callback ) - change_type: (e) -> + changeType: (e) -> $(e.target).addClass('active').siblings('.active').removeClass('active') - # store $(this).data('value') toggleVisibility: (event) -> event.stopPropagation() @@ -308,7 +307,12 @@ class App.TicketZoomArticleNew extends App.Controller scrollToBottom: -> @el.scrollParent().scrollTop @el.scrollParent().prop('scrollHeight') + propagateOpenTextarea: (event) -> + event.stopPropagation() + @textarea.focus() + openTextarea: (event, withoutAnimation) => + event.stopPropagation() if @articleNewEdit.hasClass('is-open') return diff --git a/app/assets/javascripts/app/views/channel/chat.jst.eco b/app/assets/javascripts/app/views/channel/chat.jst.eco index 865f2fc44..4c4658a4e 100644 --- a/app/assets/javascripts/app/views/channel/chat.jst.eco +++ b/app/assets/javascripts/app/views/channel/chat.jst.eco @@ -1,19 +1,15 @@

<%- @T('You can create chat widgets for your webpages to allow visitors to chat with you.') %>

-

<%- @T('Enable') %>/<%- @T('Disable') %>

-
-
- checked<% end %>> - -
-
-

<%- @T('Topics') %>

<%- @T('You can create multiple chat topics.') %>

diff --git a/app/assets/stylesheets/zammad.scss b/app/assets/stylesheets/zammad.scss index 493c25ebb..d19881ac3 100644 --- a/app/assets/stylesheets/zammad.scss +++ b/app/assets/stylesheets/zammad.scss @@ -920,6 +920,7 @@ th.align-right { .table .checkbox-replacement, .table .radio-replacement { height: 40px; + width: 40px; } .table-overview tbody .icon-checkbox, @@ -1809,10 +1810,19 @@ kbd { justify-content: center; } -.page-header-title h1, -.page-header-title h2 { - margin-top: 9px; - margin-bottom: 7px; +.page-header-title { + display: flex; + align-items: center; + + .zammad-switch { + margin-right: 9px; + } + + h1, + h2 { + margin-top: 9px; + margin-bottom: 7px; + } } .page-header-center { @@ -1827,8 +1837,17 @@ kbd { .page-header-meta { margin-left: auto; - padding-left: 9px; + padding-left: 20px; display: flex; + justify-content: flex-end; + flex: 1; + min-width: 0; /* firefox flexbug */ + + .btn { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } .btn + .btn { margin-left: 9px; @@ -4570,6 +4589,7 @@ footer { border-radius: 5px; padding-left: 12px; padding-right: 12px; + cursor: text; } .article-new .textBubble [contenteditable], diff --git a/contrib/mac_developer_scripts.app/Contents/Resources/Scripts/main.scpt b/contrib/mac_developer_scripts.app/Contents/Resources/Scripts/main.scpt index 1b2b11046..343ced05c 100644 Binary files a/contrib/mac_developer_scripts.app/Contents/Resources/Scripts/main.scpt and b/contrib/mac_developer_scripts.app/Contents/Resources/Scripts/main.scpt differ