effective_bootstrap 0.1.11 → 0.1.12

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
  SHA1:
3
- metadata.gz: 16e5df6b769aa6d131ac59f5481a3d960762bf9a
4
- data.tar.gz: aeb6a2c4235c972aec2e9f0cf0676e383f2ea176
3
+ metadata.gz: 54d6f75d825fc409ef08f715bdd974299bbeb784
4
+ data.tar.gz: be920c3352e792b354482b958dbab822a65c69b0
5
5
  SHA512:
6
- metadata.gz: 0bda57cdfb75a7d8fbec0a9d9c22f84e7f18bde428e24177a34ff4a33ec10c9077d41834151093c1bc9deb0c4c5514c1349a30ea98405321507b9d0b311d5d15
7
- data.tar.gz: 4f7ebc374cd633d91159722024b006afe666eab62c4789ea0b6c7e446dd2448a6a47ee27d601b9e5ca6598b9780d64d53a3f8ee459895fba2dba3e9eec8affb4
6
+ metadata.gz: 669f5b6629989ff1a8e37aac3f7665a297962cd7e395366c70a4de10982df47004864c5cd3d2432eafa6ccf2f9b79e7ecfe1b767c0d86b3c3987ac2b32e02c64
7
+ data.tar.gz: 3a7ac50e997609ed3bbf05b2c8358d471cb87db7145d1e0a6d1cb3bb5fd6d91075fd1183c53d5dc31f641acc78976eaf58e188abff56276abf57cb663c6614ef
@@ -6788,6 +6788,13 @@ BaseTheme.DEFAULTS = (0, _extend2.default)(true, {}, _theme2.default.DEFAULTS, {
6788
6788
  if (fileInput.files != null && fileInput.files[0] != null) {
6789
6789
  var reader = new FileReader();
6790
6790
  reader.onload = function (e) {
6791
+ // effective_bootstrap
6792
+ if(e.loaded > 1000000) {
6793
+ reader.abort();
6794
+ alert('image file size is too big! Please attach an image less than 1mb.');
6795
+ return;
6796
+ }
6797
+
6791
6798
  var range = _this3.quill.getSelection(true);
6792
6799
  _this3.quill.updateContents(new _quillDelta2.default().retain(range.index).delete(range.length).insert({ image: e.target.result }), _emitter2.default.sources.USER);
6793
6800
  _this3.quill.setSelection(range.index + 1, _emitter2.default.sources.SILENT);
@@ -18,3 +18,7 @@
18
18
 
19
19
  .ql-editor { padding: 0; }
20
20
  }
21
+
22
+ @media (max-width: 576px) {
23
+ .ql-toolbar.ql-snow .ql-formats { margin-right: 0px; }
24
+ }
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.1.11'.freeze
2
+ VERSION = '0.1.12'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-04 00:00:00.000000000 Z
11
+ date: 2018-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails