fix: date-picker flips in records cell even when there is enough space (#7905)

Fixes: #7897 

This PR fixes the flipping of the date-picker in the record's cell even
if there is enough space below the table.
I attached a screencast to show that it's working fine now. 

With this, it only flips when there is less space to accommodate the
date-picker comp. Also, I tested this after adding lots of records to
see if the scrolling behaviour is intact or not. And I found no issues,
it's working as expected.

[Screencast from 2024-10-21
13-39-42.webm](https://github.com/user-attachments/assets/615fac80-ae2e-4d26-8f94-55d7ee3f91c2)
This commit is contained in:
Harsh Singh 2024-10-23 22:44:28 +05:30 committed by GitHub
parent 2e8b8452c1
commit dd6b8be0d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,8 +8,6 @@ import { v4 } from 'uuid';
const StyledTbody = styled.tbody<{
theme: Theme;
}>`
overflow: hidden;
&.first-columns-sticky {
td:nth-of-type(1) {
position: sticky;