livechat 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b796f38ce15d2bbedc3b49cceeb0bfc8c5ee26610a6841d956aa3711c18da550
4
- data.tar.gz: d163445e0442f0f155227210a12a2bdd3f87ec01523a96f29bb898de0550a079
3
+ metadata.gz: ab3b69e1c61320ea9df88571fc2fcad40c09c44e0f14f961b59a87d23ffc161e
4
+ data.tar.gz: b6750a5aef1f99e7a6d2a49ed2fbcd6bb9cb1fb992cefd176e552f7d281f42e8
5
5
  SHA512:
6
- metadata.gz: 3a0947576d889216cf1b1330093baa73c5dcae8b55f10b682f19953a02d8e1ac071d02d38bc51ae23cd11352bec7dbba9f77520d199167b1553d9ccf75598894
7
- data.tar.gz: 59c6ad9b5a10cc2b2a2c13ce50693e4d9c492982e098c6ec42edb84c3b343c96154c988a4dc356d8e259bebc433295c10571a216cc5f451d102a653a26c81f2d
6
+ metadata.gz: 12421cafc2a629e4d1621dea03a984bd1e88d6ae9418390bd9767533208827da379f3d858cfd1c1eb1a6b47d2bb1aebaecedce8ff810f7f4fdc1197473c276e3
7
+ data.tar.gz: 53b24b739628a3fdf69082ff652a1770d1acfa18c385152e61a2f9985faa82eac968f0c0be4ff36561957d9d8a3fa2bd53c7c671d2df02d0564ac10a96bc8eda
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.1
4
+
5
+ - With `show_launcher = false` the panel now sits in the corner instead of
6
+ hovering 66px above a launcher bubble that isn't there.
7
+
3
8
  ## 0.2.0
4
9
 
5
10
  - Unread count badges on `data-livechat-open` elements, so launcher-less
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Livechat
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
@@ -116,6 +116,9 @@
116
116
  root = document.createElement("div");
117
117
  root.id = "lvc-root";
118
118
  if (config.rtl) root.setAttribute("dir", "rtl");
119
+ // No launcher bubble to clear — the panel sits in the corner instead of
120
+ // hovering 66px above nothing.
121
+ if (!config.launcher) root.className = "lvc-no-launcher";
119
122
 
120
123
  if (config.launcher) root.appendChild(buildLauncher());
121
124
  document.body.appendChild(root);
@@ -544,7 +547,9 @@
544
547
  "border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.28);display:flex;flex-direction:column;overflow:hidden}" +
545
548
  "#lvc-panel[hidden]{display:none}" +
546
549
  "#lvc-root[dir=rtl] #lvc-panel{right:auto;left:20px}" +
547
- "@media(max-width:480px){#lvc-panel{right:12px;bottom:80px}}" +
550
+ "#lvc-root.lvc-no-launcher #lvc-panel{bottom:20px;max-height:calc(100dvh - 40px)}" +
551
+ "@media(max-width:480px){#lvc-panel{right:12px;bottom:80px}" +
552
+ "#lvc-root.lvc-no-launcher #lvc-panel{right:12px;bottom:12px;max-height:calc(100dvh - 24px)}}" +
548
553
  "#lvc-header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;" +
549
554
  "padding:14px 16px;background:var(--lvc-accent);color:var(--lvc-accent-text)}" +
550
555
  "#lvc-header strong{display:block;font-size:15px}" +
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: livechat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaroslav Shmarov