diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-09 04:53:56 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-09 04:53:56 +0200 |
| commit | 3ae22916cd5fd0f63ffacc7a9e1aa97d311b83e6 (patch) | |
| tree | 05fa25472040295c9a318e17a03d9496cf91d825 /app/views/assets | |
| parent | 332ffbeed90cf07342925b82ed3fda1762346be2 (diff) | |
Fix button height mismatch between bordered and pill button styles, extend table styling to assets/users/events
Fix button height mismatch, extend table styling to assets/users/events
a.action_button (bordered) and the state_changing/destructive/computation
pills (borderless) rendered at different heights, since each pill variant
set its own padding at higher specificity than the shared rule meant to
equalize them. Padding and border-radius now live only in one shared
rule; also restores the #page_editor prefix on a.action_button, needed
to outrank the #page_editor a wavy-underline rule.
table.assets_table, table.user_table, and table.events_table now share
table.node_table's border-collapse/header/hover treatment. tr
min-height is dropped -- browsers don't honor height on <tr> -- in
favor of cell padding, kept at zero for node_table (spacing already
comes from its h4/p content) and set to 8px for the plain-text tables.
Diffstat (limited to 'app/views/assets')
| -rw-r--r-- | app/views/assets/index.html.erb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/views/assets/index.html.erb b/app/views/assets/index.html.erb index 31dae59..4301fee 100644 --- a/app/views/assets/index.html.erb +++ b/app/views/assets/index.html.erb | |||
| @@ -2,11 +2,16 @@ | |||
| 2 | <%= link_to 'New asset', new_asset_path %> | 2 | <%= link_to 'New asset', new_asset_path %> |
| 3 | <% end %> | 3 | <% end %> |
| 4 | 4 | ||
| 5 | |||
| 6 | <%= will_paginate @assets %> | 5 | <%= will_paginate @assets %> |
| 7 | 6 | ||
| 8 | <table class="assets_table"> | 7 | <table class="assets_table"> |
| 9 | <tr> | 8 | <tr class="header"> |
| 9 | <th>Preview</th> | ||
| 10 | <th>Name</th> | ||
| 11 | <th>Type</th> | ||
| 12 | <th></th> | ||
| 13 | <th></th> | ||
| 14 | <th></th> | ||
| 10 | </tr> | 15 | </tr> |
| 11 | <% @assets.each do |asset| %> | 16 | <% @assets.each do |asset| %> |
| 12 | <tr> | 17 | <tr> |
