katalyst-tables 3.4.2 → 3.4.3
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: 3759aa46548e98b88f6528c449ae5daff86785c9511a4637bbb17c692b3c7c04
|
4
|
+
data.tar.gz: 3982b2749ec6c19b4a7deb279ebc78ef8415c04be64d5949d9730d55b0999474
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 550c46bcbfec02a42c019a6f52c9339f1fb0e0046ad1368c1c2651201fc7179fb92b9f40bbb2176be27e23fff49cd7910276ea44ce19338cc8500470cb97a3cd
|
7
|
+
data.tar.gz: 7d56c07e0755a26d05a9b8dbe38b33f649a185ac4491961dc0130e29e5a2478860e9fb4625ddbf2844106297f13d2989e23f1d7f51a4a49e5e6d4bd9ddf8f52e
|
@@ -72,8 +72,9 @@
|
|
72
72
|
dl {
|
73
73
|
display: grid;
|
74
74
|
grid-auto-flow: row;
|
75
|
-
grid-auto-rows:
|
76
|
-
grid-template-columns: 1fr
|
75
|
+
grid-auto-rows: auto;
|
76
|
+
grid-template-columns: auto 1fr;
|
77
|
+
gap: 0 1rem;
|
77
78
|
}
|
78
79
|
|
79
80
|
dt {
|
@@ -85,11 +86,6 @@
|
|
85
86
|
color: #666;
|
86
87
|
}
|
87
88
|
|
88
|
-
ul {
|
89
|
-
list-style: none;
|
90
|
-
padding-left: 0;
|
91
|
-
}
|
92
|
-
|
93
89
|
.error {
|
94
90
|
background: #fff2f2;
|
95
91
|
border-bottom: 1px solid #fdd3d3;
|
@@ -9,6 +9,7 @@ $row-border-color: $grey !default;
|
|
9
9
|
$row-height: 48px !default;
|
10
10
|
$cell-spacing: 0.5rem !default;
|
11
11
|
$tag-color: $grey !default;
|
12
|
+
$on-tag-color: black !default;
|
12
13
|
|
13
14
|
$width-small: 6rem !default;
|
14
15
|
$width-medium: 12rem !default;
|
@@ -20,6 +21,7 @@ table {
|
|
20
21
|
--table-header-color: #{$table-header-color};
|
21
22
|
--row-border-color: #{$row-border-color};
|
22
23
|
--tag-color: #{$tag-color};
|
24
|
+
--on-tag-color: #{$on-tag-color};
|
23
25
|
|
24
26
|
--width-small: #{$width-small};
|
25
27
|
--width-medium: #{$width-medium};
|
@@ -2,8 +2,14 @@
|
|
2
2
|
width: var(--width-small);
|
3
3
|
}
|
4
4
|
|
5
|
-
:where(td.type-enum
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
:where(td.type-enum) {
|
6
|
+
// ensure ellipsis is the correct color
|
7
|
+
color: var(--on-tag-color);
|
8
|
+
|
9
|
+
small {
|
10
|
+
background: var(--tag-color);
|
11
|
+
border-radius: 0.25rem;
|
12
|
+
padding: 0.25rem 0.5rem;
|
13
|
+
font-size: small;
|
14
|
+
}
|
9
15
|
}
|
@@ -24,7 +24,7 @@ module Katalyst
|
|
24
24
|
|
25
25
|
def examples_for(scope, attribute)
|
26
26
|
[
|
27
|
-
*super(scope, attribute, limit: 6),
|
27
|
+
*super(scope, attribute, limit: 6, order: :desc),
|
28
28
|
example(::Date.current.beginning_of_week.., "this week"),
|
29
29
|
example(::Date.current.beginning_of_month.., "this month"),
|
30
30
|
example(1.month.ago.all_month, "last month"),
|