mensa 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/components/mensa/view/component.css +30 -34
- data/app/components/mensa/view/component.html.slim +1 -1
- data/app/tables/mensa/scope.rb +1 -1
- data/lib/mensa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e3a373d1a2e96d1d452ac526820d62e81bd6c1c208bf20d70cccd89a78adf8e
|
4
|
+
data.tar.gz: eb242b5290916cd776c12921f99ee0b36ccc2d7b54befb655ddebd0b969d84f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23db6e11b7621c2cec3ae2b74d52e468aeb554ba02d05a05b2a22aca198ac6199048a64b8411e8f8db5585fab26cd0a8b6162b94e3743bb405bbe84120509f81
|
7
|
+
data.tar.gz: ee314cf9ffde839f95ef505698adf5cefa42bad750d2684092ace87d09baa0a898b4e5ff68a77267b17726cd95899d78769df1bbd2af86b08c48be547a808de2
|
@@ -4,6 +4,7 @@
|
|
4
4
|
.badge {
|
5
5
|
@apply bg-primary-100 text-primary-600 hidden ml-3 rounded-full text-xs font-medium md:inline-block py-0.5 px-2.5;
|
6
6
|
}
|
7
|
+
|
7
8
|
table {
|
8
9
|
@apply min-w-full divide-y divide-gray-50 dark:divide-gray-800 border-0;
|
9
10
|
|
@@ -12,6 +13,7 @@
|
|
12
13
|
|
13
14
|
/* tr and th moved to header */
|
14
15
|
}
|
16
|
+
|
15
17
|
tbody {
|
16
18
|
|
17
19
|
@apply divide-y divide-gray-200 dark:divide-gray-600;
|
@@ -33,50 +35,44 @@
|
|
33
35
|
.paging {
|
34
36
|
@apply flex items-center justify-between border-t border-gray-200 dark:border-gray-600 bg-white dark:bg-gray-800 px-4 py-3 sm:px-6;
|
35
37
|
|
36
|
-
.pagy-info {
|
37
|
-
@apply text-sm text-gray-700;
|
38
|
-
b {
|
39
|
-
@apply font-medium;
|
40
|
-
}
|
41
|
-
}
|
42
38
|
|
43
|
-
.pagy
|
44
|
-
@apply
|
45
|
-
}
|
39
|
+
.pagy {
|
40
|
+
@apply flex space-x-1 text-sm text-gray-500;
|
46
41
|
|
47
|
-
|
48
|
-
|
49
|
-
}
|
42
|
+
a:not(.gap) {
|
43
|
+
@apply block rounded-lg px-3 py-1 bg-gray-200 no-underline;
|
50
44
|
|
51
|
-
|
52
|
-
|
53
|
-
|
45
|
+
&:hover {
|
46
|
+
@apply bg-gray-300;
|
47
|
+
}
|
54
48
|
|
55
|
-
|
56
|
-
|
57
|
-
|
49
|
+
&:not([href]) {
|
50
|
+
/* disabled links */
|
51
|
+
@apply text-gray-300 bg-gray-100 cursor-default;
|
52
|
+
}
|
58
53
|
|
59
|
-
|
60
|
-
|
61
|
-
|
54
|
+
&.current {
|
55
|
+
@apply text-white bg-primary-600;
|
56
|
+
}
|
57
|
+
}
|
62
58
|
|
63
|
-
|
64
|
-
|
65
|
-
}
|
59
|
+
label {
|
60
|
+
@apply inline-block whitespace-nowrap bg-gray-200 rounded-lg px-3 py-0.5;
|
66
61
|
|
67
|
-
|
68
|
-
|
62
|
+
input {
|
63
|
+
@apply bg-gray-100 border-none rounded-md;
|
64
|
+
}
|
65
|
+
}
|
69
66
|
}
|
70
|
-
}
|
71
67
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
68
|
+
&__condensed {
|
69
|
+
table {
|
70
|
+
tbody {
|
71
|
+
td {
|
72
|
+
@apply pl-4 py-2;
|
73
|
+
}
|
77
74
|
}
|
78
75
|
}
|
79
76
|
}
|
80
77
|
}
|
81
|
-
|
82
|
-
}
|
78
|
+
}
|
data/app/tables/mensa/scope.rb
CHANGED
@@ -78,7 +78,7 @@ module Mensa
|
|
78
78
|
def pagy_object
|
79
79
|
return if @pagy_details && @records
|
80
80
|
|
81
|
-
@pagy_details, @records = selected_scope.is_a?(Array) ? pagy_array(ordered_scope) : pagy(selected_scope)
|
81
|
+
@pagy_details, @records = selected_scope.is_a?(Array) ? pagy_array(ordered_scope, anchor_string: 'data-turbo-frame="_self"') : pagy(selected_scope, anchor_string: 'data-turbo-frame="_self"')
|
82
82
|
end
|
83
83
|
|
84
84
|
# Though this works, perhaps moving this in column(s) is nicer
|
data/lib/mensa/version.rb
CHANGED