Skip to content

Commit c42d465

Browse files
moozzidutow
authored andcommitted
Change settings page styles
1 parent 47cb7d2 commit c42d465

2 files changed

Lines changed: 67 additions & 58 deletions

File tree

‎app/assets/stylesheets/components/settings.css‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
.settings-page {
2-
padding: var(--spacing-10) var(--spacing-6) var(--spacing-12);
2+
padding: var(--spacing-6);
33
}
44

55
.settings-page h1 {
6-
font-size: var(--font-size-2xl);
6+
font-size: var(--font-size-3xl);
77
color: var(--color-text-primary);
8-
margin-bottom: var(--spacing-8);
98
}
109

1110
.settings-page .settings-page-count {
@@ -416,7 +415,7 @@
416415
}
417416

418417
.settings-page .teams-section {
419-
margin-bottom: var(--spacing-8);
418+
padding: var(--spacing-6) 0;
420419
}
421420

422421
.settings-page .team-actions,
@@ -752,3 +751,11 @@
752751
display: flex;
753752
gap: var(--spacing-3);
754753
}
754+
755+
.settings-page .saved-searches-section {
756+
padding: var(--spacing-6) 0;
757+
}
758+
759+
.settings-page .saved-searches-new-button-section {
760+
padding-bottom: var(--spacing-6);
761+
}

‎app/views/settings/saved_searches/index.html.slim‎

Lines changed: 56 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -3,63 +3,65 @@
33
.settings-page
44
h1 My Saved Searches
55

6-
= link_to "New saved search", new_settings_saved_search_path, class: "button-primary"
6+
.saved-searches-section
7+
.saved-searches-new-button-section
8+
= link_to "New saved search", new_settings_saved_search_path, class: "button-primary"
79

8-
- if @saved_searches.any?
9-
h2 My Searches
10-
.email-table-wrap
11-
table.email-table
12-
thead
13-
tr
14-
th Name
15-
th Query
16-
th Actions
17-
tbody
18-
- @saved_searches.each do |ss|
10+
- if @saved_searches.any?
11+
h2 My Searches
12+
.email-table-wrap
13+
table.email-table
14+
thead
1915
tr
20-
td = ss.name
21-
td
22-
code = ss.query
23-
td
24-
= link_to "Edit", edit_settings_saved_search_path(ss), class: "button-secondary button-small"
25-
= button_to "Delete", settings_saved_search_path(ss), method: :delete, class: "button-danger-secondary button-small", data: { turbo_confirm: "Delete this saved search?" }
16+
th Name
17+
th Query
18+
th Actions
19+
tbody
20+
- @saved_searches.each do |ss|
21+
tr
22+
td = ss.name
23+
td
24+
code = ss.query
25+
td
26+
= link_to "Edit", edit_settings_saved_search_path(ss), class: "button-secondary button-small"
27+
= button_to "Delete", settings_saved_search_path(ss), method: :delete, class: "button-danger-secondary button-small", data: { turbo_confirm: "Delete this saved search?" }
2628

27-
- if @global_searches.any?
28-
h2 Global Searches
29-
p.settings-hint These are visible to everyone. You can hide them from your sidebar.
30-
.email-table-wrap
31-
table.email-table
32-
thead
33-
tr
34-
th Name
35-
th Query
36-
th Visible
37-
tbody
38-
- @global_searches.each do |ss|
29+
- if @global_searches.any?
30+
h2 Global Searches
31+
p.settings-hint These are visible to everyone. You can hide them from your sidebar.
32+
.email-table-wrap
33+
table.email-table
34+
thead
3935
tr
40-
td = ss.name
41-
td
42-
code = ss.query
43-
td
44-
- hidden = @hidden_ids.include?(ss.id)
45-
= button_to hidden ? "Show" : "Hide", settings_saved_search_preferences_path(saved_search_id: ss.id, hidden: !hidden), method: :post, class: "button-secondary button-small"
36+
th Name
37+
th Query
38+
th Visible
39+
tbody
40+
- @global_searches.each do |ss|
41+
tr
42+
td = ss.name
43+
td
44+
code = ss.query
45+
td
46+
- hidden = @hidden_ids.include?(ss.id)
47+
= button_to hidden ? "Show" : "Hide", settings_saved_search_preferences_path(saved_search_id: ss.id, hidden: !hidden), method: :post, class: "button-secondary button-small"
4648

47-
- if @system_searches.any?
48-
h2 Default Searches
49-
p.settings-hint These are provided by the site administrators. You can hide them from your sidebar.
50-
.email-table-wrap
51-
table.email-table
52-
thead
53-
tr
54-
th Name
55-
th Query
56-
th Visible
57-
tbody
58-
- @system_searches.each do |ss|
49+
- if @system_searches.any?
50+
h2 Default Searches
51+
p.settings-hint These are provided by the site administrators. You can hide them from your sidebar.
52+
.email-table-wrap
53+
table.email-table
54+
thead
5955
tr
60-
td = ss.name
61-
td
62-
code = ss.query
63-
td
64-
- hidden = @hidden_ids.include?(ss.id)
65-
= button_to hidden ? "Show" : "Hide", settings_saved_search_preferences_path(saved_search_id: ss.id, hidden: !hidden), method: :post, class: "button-secondary button-small"
56+
th Name
57+
th Query
58+
th Visible
59+
tbody
60+
- @system_searches.each do |ss|
61+
tr
62+
td = ss.name
63+
td
64+
code = ss.query
65+
td
66+
- hidden = @hidden_ids.include?(ss.id)
67+
= button_to hidden ? "Show" : "Hide", settings_saved_search_preferences_path(saved_search_id: ss.id, hidden: !hidden), method: :post, class: "button-secondary button-small"

0 commit comments

Comments
 (0)