style: change the appearance of the “Hide Input” button
This commit is contained in:
parent
acdec857b0
commit
a106c5d6c1
|
|
@ -41,14 +41,16 @@ export default function AnalysisClient() {
|
|||
{...item.title}
|
||||
/>
|
||||
</div>
|
||||
<Button
|
||||
type="button"
|
||||
variant="ghost"
|
||||
onClick={() => setVisibleFields((prev) => prev - 1)}
|
||||
className="text-sentiment-negative hover:text-sentiment-negative hover:bg-sentiment-negative-light shrink-0"
|
||||
>
|
||||
✕
|
||||
</Button>
|
||||
{index === visibleFields - 1 && (
|
||||
<Button
|
||||
type="button"
|
||||
variant="ghost"
|
||||
onClick={() => setVisibleFields((prev) => prev - 1)}
|
||||
className="text-sentiment-negative hover:text-sentiment-negative hover:bg-sentiment-negative-light shrink-0"
|
||||
>
|
||||
✕
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
));
|
||||
|
|
|
|||
Loading…
Reference in New Issue