Remove margin on hover if table readonly (#4022)
Co-authored-by: Rajat-Dabade <rajat.dabade@mattermost.com>
This commit is contained in:
parent
9cc1071945
commit
ffacc17e35
5 changed files with 14 additions and 7 deletions
|
@ -2153,7 +2153,7 @@ exports[`components/centerPanel return centerPanel and press touch 1 with readon
|
|||
</button>
|
||||
</div>
|
||||
<div
|
||||
class="TableRow octo-table-row"
|
||||
class="TableRow octo-table-row readonly"
|
||||
draggable="true"
|
||||
style="opacity: 1;"
|
||||
>
|
||||
|
@ -2194,7 +2194,7 @@ exports[`components/centerPanel return centerPanel and press touch 1 with readon
|
|||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="TableRow octo-table-row"
|
||||
class="TableRow octo-table-row readonly"
|
||||
draggable="true"
|
||||
style="opacity: 1;"
|
||||
>
|
||||
|
|
|
@ -1876,7 +1876,7 @@ exports[`components/table/Table limited card in table view 1`] = `
|
|||
class="table-row-container"
|
||||
>
|
||||
<div
|
||||
class="TableRow octo-table-row"
|
||||
class="TableRow octo-table-row readonly"
|
||||
draggable="true"
|
||||
style="opacity: 1;"
|
||||
>
|
||||
|
@ -1955,7 +1955,7 @@ exports[`components/table/Table limited card in table view 1`] = `
|
|||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="TableRow octo-table-row"
|
||||
class="TableRow octo-table-row readonly"
|
||||
draggable="true"
|
||||
style="opacity: 1;"
|
||||
>
|
||||
|
@ -2710,7 +2710,7 @@ exports[`components/table/Table should match snapshot without permissions 1`] =
|
|||
class="table-row-container"
|
||||
>
|
||||
<div
|
||||
class="TableRow octo-table-row"
|
||||
class="TableRow octo-table-row readonly"
|
||||
draggable="true"
|
||||
style="opacity: 1;"
|
||||
>
|
||||
|
@ -2945,7 +2945,7 @@ exports[`components/table/Table should match snapshot, read-only 1`] = `
|
|||
class="table-row-container"
|
||||
>
|
||||
<div
|
||||
class="TableRow octo-table-row"
|
||||
class="TableRow octo-table-row readonly"
|
||||
draggable="true"
|
||||
style="opacity: 1;"
|
||||
>
|
||||
|
|
|
@ -333,7 +333,7 @@ exports[`components/table/TableRow should match snapshot, isSelected 1`] = `
|
|||
exports[`components/table/TableRow should match snapshot, read-only 1`] = `
|
||||
<div>
|
||||
<div
|
||||
class="TableRow octo-table-row"
|
||||
class="TableRow octo-table-row readonly"
|
||||
draggable="true"
|
||||
style="opacity: 1;"
|
||||
>
|
||||
|
|
|
@ -53,6 +53,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
&.readonly:hover {
|
||||
margin-left: unset;
|
||||
}
|
||||
|
||||
.action-cell {
|
||||
display: none;
|
||||
margin-left: 20px;
|
||||
|
|
|
@ -100,6 +100,9 @@ const TableRow = (props: Props) => {
|
|||
className += ' hidden'
|
||||
}
|
||||
}
|
||||
if (props.readonly) {
|
||||
className += ' readonly'
|
||||
}
|
||||
|
||||
const handleDeleteCard = useCallback(async () => {
|
||||
if (!card) {
|
||||
|
|
Loading…
Reference in a new issue