CSS bug fix on tables: overflow underline was extending through padding

This commit is contained in:
James Nuanez
2020-04-24 22:02:20 -07:00
parent 698cf8b764
commit 21045249cf
2 changed files with 17 additions and 13 deletions
+10 -8
View File
@@ -310,14 +310,16 @@ const TableContent = props => {
{props.columns.map((c, i) => (
<td key={c.key}>
{i === 0
? <Link
to={`/internal/${props.urlParam}/${a.sid}/edit`}
tabIndex={modalOpen ? '-1' : ''}
>
<span tabIndex="-1" title={a[c.key]}>
{a[c.key]}
</span>
</Link>
? <span>
<Link
to={`/internal/${props.urlParam}/${a.sid}/edit`}
tabIndex={modalOpen ? '-1' : ''}
>
<span tabIndex="-1" title={a[c.key]}>
{a[c.key]}
</span>
</Link>
</span>
: <span title={a[c.key]}>{a[c.key]}</span>
}
</td>
+7 -5
View File
@@ -38,27 +38,29 @@ const Table = styled.table`
padding: 0 1.5rem;
}
& td {
& td > span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: block;
padding: 0.5rem 0;
}
& td > a {
& td > span > a {
outline: 0;
text-decoration: none;
}
& td > a > span {
& td > span > a > span {
outline: 0;
color: #565656;
}
& td > a:hover > span {
& td > span > a:hover > span {
box-shadow: 0 0.125rem 0 #565656;
}
& td > a:focus > span {
& td > span > a:focus > span {
padding: 0.625rem;
margin: -0.625rem;
border-radius: 0.25rem;