Skip to content

Commit ece0ce6

Browse files
authored
UI: add hover background to table rows in user and repo admin page (#35072)
1 parent 7cc47da commit ece0ce6

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

templates/admin/repo/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{{template "shared/repo/search" .}}
1111
</div>
1212
<div class="ui attached table segment">
13-
<table class="ui very basic striped table unstackable">
13+
<table class="ui very basic striped table selectable unstackable">
1414
<thead>
1515
<tr>
1616
<th data-sortt-asc="oldest" data-sortt-desc="newest">ID{{SortArrow "oldest" "newest" $.SortType false}}</th>

templates/admin/user/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</form>
5757
</div>
5858
<div class="ui attached table segment">
59-
<table class="ui very basic striped table unstackable">
59+
<table class="ui very basic striped selectable table unstackable">
6060
<thead>
6161
<tr>
6262
<th data-sortt-asc="oldest" data-sortt-desc="newest">ID{{SortArrow "oldest" "newest" .SortType false}}</th>

web_src/css/modules/table.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@
167167
text-overflow: ellipsis;
168168
}
169169

170+
.ui.selectable.table > tbody > tr:hover,
171+
.ui.table tbody tr td.selectable:hover {
172+
background: var(--color-hover);
173+
}
174+
170175
.ui.attached.table {
171176
top: 0;
172177
bottom: 0;
@@ -289,6 +294,9 @@
289294
.ui.basic.striped.table > tbody > tr:nth-child(2n) {
290295
background: var(--color-light);
291296
}
297+
.ui.basic.striped.selectable.table > tbody > tr:nth-child(2n):hover {
298+
background: var(--color-hover);
299+
}
292300

293301
.ui[class*="very basic"].table {
294302
border: none;

0 commit comments

Comments
 (0)