Skip to content

Commit

Permalink
[FEATURE] Show action icons on hover
Browse files Browse the repository at this point in the history
To visually declutter the table, the action icons are only shown on hover.

Related: #60
  • Loading branch information
sypets committed Jun 7, 2021
1 parent 8c116b7 commit 1e7604c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions Resources/Private/Sass/brofix.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,23 @@ div.brofix-brokenlink-list-form select.form-control {
vertical-align: middle;
}

/* ------ broken links table ------------ */

#brofix-broken-links-table {
table-layout: fixed;
border: none;
}

#brofix-broken-links-table tr {
border: none;
}

#brofix-broken-links-table tr:hover td.action-column a {
visibility: visible;
}

#brofix-broken-links-table tr td.action-column a {
visibility: hidden;
}

#brofix-broken-links-table td {
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Templates/Backend/ReportTab.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
</td>
<td>{item.linkmessage -> f:format.raw()}</td>
<td class="table-column-divider-end">{item.lastcheck_url}</td>
<td>
<td class="action-column">
<a class="btn btn-primary" href="{item.editUrl}"
title="{f:translate(key: 'list.edit.field', extensionName: 'Brofix')}">
<core:icon identifier="actions-open" size="small"/>
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/Css/brofix.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1e7604c

Please sign in to comment.