govuk_publishing_components 21.66.0 → 21.66.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bf9f7485f017d85bcc7a495d8589ef344ec7e942536e9b0e1e572b37e36c919
|
4
|
+
data.tar.gz: afab329a86f75e95926103ec746038e0e2ac6967b756985efc0d39f86a2c0b35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b95b4802e4e9dbe071e1c9c24b8994cc868df9f1f949d2e6b64d78cd34ed4bc6d3db8ca742fc57c08236efd258418d91edeb85915f02c26b4658c6680e410fb
|
7
|
+
data.tar.gz: 56e3f6bcddaf5fa925016960767017683b2ea100bdac40141b2440335ca3f1d3435658c4e11024ef19cd5d4beeefa897154ab86907fd25205c44438dc11df1dc
|
@@ -396,14 +396,14 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
396
396
|
var $cell = cells[i]
|
397
397
|
var cellVal = parseFloat(this.utils.stripValue($cell.innerText), 10)
|
398
398
|
var $cellSpan = $cell.querySelector('span')
|
399
|
-
var spanWidth =
|
400
|
-
var cellWidth =
|
399
|
+
var spanWidth = $cell.querySelector('span').offsetWidth + 5 // +5 just for extra padding
|
400
|
+
var cellWidth = $cell.offsetWidth
|
401
401
|
|
402
402
|
if (!this.options.stacked) {
|
403
403
|
// if it's 0, it is effectively outdented
|
404
404
|
if (cellVal === 0) { $cell.classList.add('mc-bar-outdented') }
|
405
405
|
|
406
|
-
if ((this.options.autoOutdent && spanWidth
|
406
|
+
if ((this.options.autoOutdent && spanWidth >= cellWidth) || this.options.outdentAll) {
|
407
407
|
$cell.classList.add('mc-bar-outdented')
|
408
408
|
$cellSpan.style.marginLeft = '100%'
|
409
409
|
$cellSpan.style.display = 'inline-block'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_publishing_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 21.66.
|
4
|
+
version: 21.66.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_app_config
|