diff --git a/app/assets/stylesheets/zammad.scss b/app/assets/stylesheets/zammad.scss
index e8d330259..0626ffdd8 100644
--- a/app/assets/stylesheets/zammad.scss
+++ b/app/assets/stylesheets/zammad.scss
@@ -6529,6 +6529,7 @@ output {
color: hsl(60,1%,34%);
background: white;
table-layout: auto;
+ margin-bottom: 20px;
&.is-invalid {
border-radius: 3px;
@@ -7327,16 +7328,16 @@ output {
margin: 0 0 20px;
border: 1px solid hsl(0,0%,90%);
border-radius: 5px;
- height: 500px;
position: relative;
- display: flex;
- flex-direction: column;
}
.browser-body {
position: relative;
overflow: hidden;
- flex: 1;
+ height: 450px;
+ width: 100%;
+ transition: 500ms;
+ background: #eee;
iframe {
position: absolute;
@@ -7351,17 +7352,21 @@ output {
.browser-head {
display: flex;
- padding: 5px;
+ align-items: center;
+ padding: 10px;
border-bottom: 1px solid hsl(0,0%,90%);
.browser-input {
flex: 1;
- margin: 5px;
+ margin-right: 10px;
+
+ input {
+ min-width: 0;
+ }
}
.browser-control {
width: 39px;
- margin: 5px;
display: flex;
align-items: center;
justify-content: center;
@@ -7370,11 +7375,22 @@ output {
}
}
-
.chat-demo {
.zammad-chat {
position: absolute;
transform-origin: right bottom;
+ transition: 500ms;
+
+ .zammad-chat-body {
+ transition: 500ms;
+ }
+
+ &.is-fullscreen {
+ height: 100%;
+ }
+ }
+
+ .zammad-chat-header {
pointer-events: auto;
}
@@ -7393,6 +7409,22 @@ output {
from { transform: translateY(100%); }
}
+.select-tabs {
+ display: flex;
+ border: 1px solid hsla(206,100%,3%,0.08);
+ border-radius: 3px;
+
+ .tab {
+ height: 39px;
+ padding-top: 11px;
+ color: hsl(199,18%,72%);
+
+ &.is-selected {
+ background: linear-gradient(hsla(199,30%,40%,.08), hsla(199,30%,40%,.03));
+ }
+ }
+}
+
/*
----------------
diff --git a/public/assets/chat/chat.coffee b/public/assets/chat/chat.coffee
index 8f4aaf63e..10747d815 100644
--- a/public/assets/chat/chat.coffee
+++ b/public/assets/chat/chat.coffee
@@ -16,6 +16,7 @@ do($ = window.jQuery, window) ->
fontSize: undefined
buttonSelector: '.open-zammad-chat'
hiddenButtonClass: 'is-inactive'
+ title: '
Chat with us!'
_messageCount: 0
isOpen: true
@@ -30,7 +31,6 @@ do($ = window.jQuery, window) ->
initialQueueDelay: 10000
wsReconnectEnable: true
strings:
- '
Chat with us!': '
Chatten sie mit uns!'
'Online': 'Online'
'Offline': 'Offline'
'Connecting': 'Verbinden'
@@ -80,7 +80,9 @@ do($ = window.jQuery, window) ->
return
@options = $.extend {}, @defaults, options
- @el = $(@view('chat')())
+ @el = $(@view('chat')(
+ title: @options.title
+ ))
@options.target.append @el
@input = @el.find('.zammad-chat-input')
diff --git a/public/assets/chat/chat.css b/public/assets/chat/chat.css
index ea490364a..f700e2ec5 100644
--- a/public/assets/chat/chat.css
+++ b/public/assets/chat/chat.css
@@ -5,6 +5,7 @@
bottom: 0;
font-size: 12px;
width: 33em;
+ height: 30em;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
border-radius: 5px 5px 0 0;
will-change: bottom;
@@ -12,6 +13,17 @@
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column; }
+ .zammad-chat.is-fullscreen {
+ right: 0;
+ width: 100%;
+ height: 100vh;
+ border-radius: 0 !important; }
+ @media only screen and (max-width: 768px) {
+ .zammad-chat {
+ right: 0;
+ width: 100%;
+ height: 100vh;
+ border-radius: 0 !important; } }
.zammad-chat.zammad-chat-is-open {
display: -webkit-flex;
@@ -35,6 +47,12 @@
border-radius: 5px 5px 0 0;
overflow: hidden;
cursor: pointer; }
+ @media only screen and (max-width: 768px) {
+ .zammad-chat-header {
+ border-radius: 0 !important; } }
+
+.zammad-chat.is-fullscreen .zammad-chat-header {
+ border-radius: 0 !important; }
.zammad-chat.zammad-chat-is-open .zammad-chat-header {
cursor: default; }
@@ -168,9 +186,17 @@
.zammad-chat-body {
padding: 0.5em 1em;
- height: 25em;
overflow: auto;
- background: white; }
+ background: white;
+ -webkit-flex: 1;
+ -ms-flex: 1;
+ flex: 1; }
+ @media only screen and (max-width: 768px) {
+ .zammad-chat-body {
+ height: auto;
+ -webkit-flex: 1;
+ -ms-flex: 1;
+ flex: 1; } }
.zammad-chat-timestamp {
text-align: center;
@@ -343,23 +369,3 @@
.zammad-chat--flat .zammad-chat-button,
.zammad-chat--flat .zammad-chat-status {
box-shadow: none; }
-
-/*
-
- Mobile Design
-
-*/
-@media only screen and (max-width: 768px) {
- .zammad-chat {
- left: 0;
- right: 0;
- width: auto;
- height: 100vh; }
- .zammad-chat-body {
- height: auto;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- .zammad-chat,
- .zammad-chat-header {
- border-radius: 0 !important; } }
diff --git a/public/assets/chat/chat.js b/public/assets/chat/chat.js
index 331863fd4..32cd7dc89 100644
--- a/public/assets/chat/chat.js
+++ b/public/assets/chat/chat.js
@@ -76,7 +76,8 @@ var bind = function(fn, me){ return function(){ return fn.apply(me, arguments);
debug: false,
fontSize: void 0,
buttonSelector: '.open-zammad-chat',
- hiddenButtonClass: 'is-inactive'
+ hiddenButtonClass: 'is-inactive',
+ title: '
Chat with us!'
};
ZammadChat.prototype._messageCount = 0;
@@ -104,7 +105,6 @@ var bind = function(fn, me){ return function(){ return fn.apply(me, arguments);
ZammadChat.prototype.wsReconnectEnable = true;
ZammadChat.prototype.strings = {
- '
Chat with us!': '
Chatten sie mit uns!',
'Online': 'Online',
'Offline': 'Offline',
'Connecting': 'Verbinden',
@@ -201,7 +201,9 @@ var bind = function(fn, me){ return function(){ return fn.apply(me, arguments);
return;
}
this.options = $.extend({}, this.defaults, options);
- this.el = $(this.view('chat')());
+ this.el = $(this.view('chat')({
+ title: this.options.title
+ }));
this.options.target.append(this.el);
this.input = this.el.find('.zammad-chat-input');
this.el.find('.js-chat-open').click(this.open);
@@ -861,7 +863,7 @@ window.zammadChatTemplates["chat"] = function (__obj) {
__out.push('>\n \n
\n
\n
\n
\n
');
- __out.push(this.T('Chat with us!'));
+ __out.push(this.title);
__out.push('\n
\n