fix: correção no estilo da célula selecionada
This commit is contained in:
parent
35f1038317
commit
b29fa44a71
|
|
@ -2191,7 +2191,7 @@ export default function Teste() {
|
|||
|
||||
if (isSelected) {
|
||||
style +=
|
||||
" bg-gradient-to-r from-green-100 to-emerald-100 shadow-lg";
|
||||
" bg-green-100 shadow-lg";
|
||||
}
|
||||
|
||||
switch (row.type) {
|
||||
|
|
@ -2828,7 +2828,7 @@ export default function Teste() {
|
|||
return (
|
||||
<div
|
||||
key={index}
|
||||
className={`text-sm border-b border-gray-100 transition-all duration-200 ease-in-out ${getRowStyle(row)}`}
|
||||
className={`text-sm border-b border-gray-100 transition-all duration-200 ease-in-out ${getRowStyle(row)} cursor-pointer`}
|
||||
style={{
|
||||
height: '40px',
|
||||
minHeight: '40px',
|
||||
|
|
@ -2839,9 +2839,10 @@ export default function Teste() {
|
|||
boxSizing: 'border-box',
|
||||
borderLeft: isSelected ? '4px solid rgb(34 197 94)' : 'none',
|
||||
}}
|
||||
onClick={() => handleRowClick(row)}
|
||||
>
|
||||
<div
|
||||
className="py-1 whitespace-nowrap flex items-center h-full"
|
||||
className="py-1 whitespace-nowrap flex items-center h-full w-full"
|
||||
style={{
|
||||
minWidth: 'max-content',
|
||||
height: '100%',
|
||||
|
|
|
|||
Loading…
Reference in New Issue