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) {
|
if (isSelected) {
|
||||||
style +=
|
style +=
|
||||||
" bg-gradient-to-r from-green-100 to-emerald-100 shadow-lg";
|
" bg-green-100 shadow-lg";
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (row.type) {
|
switch (row.type) {
|
||||||
|
|
@ -2828,7 +2828,7 @@ export default function Teste() {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
key={index}
|
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={{
|
style={{
|
||||||
height: '40px',
|
height: '40px',
|
||||||
minHeight: '40px',
|
minHeight: '40px',
|
||||||
|
|
@ -2839,9 +2839,10 @@ export default function Teste() {
|
||||||
boxSizing: 'border-box',
|
boxSizing: 'border-box',
|
||||||
borderLeft: isSelected ? '4px solid rgb(34 197 94)' : 'none',
|
borderLeft: isSelected ? '4px solid rgb(34 197 94)' : 'none',
|
||||||
}}
|
}}
|
||||||
|
onClick={() => handleRowClick(row)}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className="py-1 whitespace-nowrap flex items-center h-full"
|
className="py-1 whitespace-nowrap flex items-center h-full w-full"
|
||||||
style={{
|
style={{
|
||||||
minWidth: 'max-content',
|
minWidth: 'max-content',
|
||||||
height: '100%',
|
height: '100%',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue