Skip to content
This repository was archived by the owner on Jan 6, 2022. It is now read-only.

Commit 96f34c5

Browse files
committed
fix: set to disable the hover action to dat-list-header.
1 parent a48bc4a commit 96f34c5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

app/components/table-row.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ import TitleField from './title-field'
1212

1313
export const Tr = styled.tr`
1414
transition: background-color 0.025s ease-out;
15-
&:hover,
16-
&:focus {
17-
background-color: var(--color-neutral-04);
18-
cursor: pointer;
15+
&.selectable {
16+
&:hover,
17+
&:focus {
18+
background-color: var(--color-neutral-04);
19+
cursor: pointer;
20+
}
1921
}
2022
.cell-1 {
2123
width: 4rem;
@@ -149,7 +151,7 @@ const Row = ({
149151
const { title } = metadata
150152
const placeholderTitle = `#${key}`
151153
return (
152-
<Tr onClick={() => inspectDat(dat.key)}>
154+
<Tr onClick={() => inspectDat(dat.key)} className='selectable'>
153155
<td className='cell-1'>
154156
<div
155157
className='w2 center'

0 commit comments

Comments
 (0)