Skip to content

Commit b1abcbb

Browse files
committed
add hover effect to table rows & correctly clip edges at top & bottom
1 parent 5db7688 commit b1abcbb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

frontend/src/features/archived-items/item-dependency-list/item-dependency-list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export class ItemDependencyTree extends BtrixElement {
126126
</btrix-table-header-cell>
127127
</btrix-table-head>
128128
<btrix-table-body
129-
class="divide-y rounded border [--btrix-table-cell-padding-x:var(--sl-spacing-x-small)] [--btrix-table-cell-padding-y:var(--sl-spacing-2x-small)]"
129+
class="divide-y overflow-clip rounded border [--btrix-table-cell-padding-x:var(--sl-spacing-x-small)] [--btrix-table-cell-padding-y:var(--sl-spacing-2x-small)]"
130130
>
131131
${repeat(this.items, ({ id }) => id, this.renderItem)}
132132
</btrix-table-body>

frontend/src/features/archived-items/item-dependents.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class ItemDependents extends BtrixElement {
5555
</btrix-table-header-cell>
5656
</btrix-table-head>
5757
<btrix-table-body
58-
class="divide-y rounded border [--btrix-table-cell-padding-x:var(--sl-spacing-x-small)] [--btrix-table-cell-padding-y:var(--sl-spacing-2x-small)]"
58+
class="divide-y overflow-clip rounded border [--btrix-table-cell-padding-x:var(--sl-spacing-x-small)] [--btrix-table-cell-padding-y:var(--sl-spacing-2x-small)]"
5959
>
6060
${this.items.map(this.renderRow)}
6161
</btrix-table-body>
@@ -66,7 +66,9 @@ export class ItemDependents extends BtrixElement {
6666
private readonly renderRow = (item: ArchivedItem) => {
6767
const crawled = isCrawl(item);
6868

69-
return html`<btrix-table-row class="h-10">
69+
return html`<btrix-table-row
70+
class="h-10 cursor-pointer select-none whitespace-nowrap transition-colors duration-fast focus-within:bg-neutral-50 hover:bg-neutral-50"
71+
>
7072
<btrix-table-cell
7173
>${collectionStatusIcon({
7274
item,

0 commit comments

Comments
 (0)