cm-admin 1.5.48 → 1.5.49

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: 15551855652f4c5ac77f380e97f4ffee2641505f1daf273d47eae69c571322d1
4
- data.tar.gz: bc0face163e5ace8d25df0c19c093673d7bf28d1f36b8bd607d717e7143634b5
3
+ metadata.gz: e8b93ddf37f6e38e2941258922c9717f51376d2950759b4822aed030c6b90d20
4
+ data.tar.gz: 45da70fe84a3cbdbf3edac26d7d55d276fb93057cbaa6a408f91d5e960e8090e
5
5
  SHA512:
6
- metadata.gz: 0ed4fb721ecc53c56b6a808817a9873fe4f4fa11d2b1d24c56f4514775b24ef5fc79cbdf6f0d90f9c0b78e20af154d2712eaf4e5d93c84a7ef0efe2fe292e6ad
7
- data.tar.gz: 22a7d944b8fb5a351a519a0df3bbfb1d48b7d220df715cd017345acee909c638020bee23b28fe044528492431b4c81673b1617332498de262335dcadab833a9a
6
+ metadata.gz: 3e9f9eb33d0109f203fecef632fe6d42599cc2932a1a6dda8b1671742009c21faf69cdd9037c8406ca62582b6ad69dae95561aee88326d8051a61e348d6e0e37
7
+ data.tar.gz: 7c00620c3ff14846ab2371bab8c9a3873d558f01925ea0d22074cd2ce4259389f88e8a23fc0b02fd32174c0e3f9213ad0d1418a31b6cd03515f4a028e8f49bff
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cm-admin (1.5.48)
4
+ cm-admin (1.5.49)
5
5
  caxlsx_rails
6
6
  cocoon (~> 1.2.15)
7
7
  csv-importer (~> 0.8.2)
@@ -23,12 +23,27 @@
23
23
  cursor: pointer;
24
24
  }
25
25
  }
26
+
26
27
  .search-results-container {
27
28
  margin: 16px 0;
28
29
  .result-item {
30
+ @include flex($align:center);
29
31
  padding: 8px 16px;
30
32
  font-size: $t4-text;
31
- line-height: 22px;
33
+ line-height: 22px;
34
+ .result-text {
35
+ display: flex;
36
+ span {
37
+ margin: 0;
38
+ }
39
+ }
40
+ .result-icon {
41
+ @include flex($justify:center, $align:center);
42
+ svg {
43
+ width: 16px;
44
+ height: 16px;
45
+ }
46
+ }
32
47
  span:nth-child(1) {
33
48
  color: $grey-dark-clr;
34
49
  }
@@ -38,6 +53,7 @@
38
53
  }
39
54
  }
40
55
  }
56
+
41
57
  .results-action {
42
58
  display: flex;
43
59
  align-items: center;
@@ -49,11 +49,19 @@
49
49
  overflow-y: auto;
50
50
  .menu-item {
51
51
  @include font($size: $t4-text, $color: $ink-lightest-clr);
52
+ @include flex($align:center);
52
53
  padding: 8px 24px;
53
54
  transition: all 0.2s linear;
54
55
  cursor: pointer;
55
56
  .menu-icon {
57
+ @include flex($justify:center, $align:center);
58
+ height: 16px;
59
+ width: 16px;
56
60
  margin-right: 8px;
61
+ svg {
62
+ width: 100%;
63
+ height: 100%;
64
+ }
57
65
  }
58
66
  .list-arrow {
59
67
  font-size: 10px;
@@ -65,7 +73,6 @@
65
73
  background: rgba(255, 255, 255, 0.1);
66
74
  }
67
75
  }
68
-
69
76
  .menu-sub-list {
70
77
  .menu-sub-item {
71
78
  @include font($size: $t4-text, $color: $ink-lightest-clr);
@@ -1,3 +1,3 @@
1
1
  module CmAdmin
2
- VERSION = '1.5.48'
2
+ VERSION = '1.5.49'
3
3
  end
@@ -13,7 +13,7 @@ module CmAdmin
13
13
  content_tag(:a, href: path) do
14
14
  content_tag(:div, class: 'menu-item') do
15
15
  content_tag(:span, class: 'menu-icon') do
16
- concat tag.i class: "#{model.icon_name}"
16
+ concat tag.i class: model.icon_name.to_s
17
17
  end +
18
18
  model.model_name.titleize.pluralize
19
19
  end
@@ -21,12 +21,14 @@ module CmAdmin
21
21
  elsif navigation_type == 'quick_links'
22
22
  content_tag(:a, href: path, class: 'visible') do
23
23
  content_tag(:div, class: 'result-item') do
24
- content_tag(:span) do
25
- concat tag.i class: "#{model.icon_name}"
26
- end +
27
- content_tag(:span) do
28
- model.model_name
29
- end
24
+ content_tag(:div, class: 'result-text') do
25
+ content_tag(:span, class: 'result-icon') do
26
+ concat tag.i class: model.icon_name.to_s
27
+ end +
28
+ content_tag(:span) do
29
+ model.model_name.titleize.pluralize
30
+ end
31
+ end
30
32
  end
31
33
  end
32
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cm-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.48
4
+ version: 1.5.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael