style: list block overflowY (#4822)

This commit is contained in:
Katherine 2024-07-05 15:19:27 +08:00 committed by GitHub
parent 3da0fcf3dd
commit 5fa0c6a10f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,7 +77,7 @@ const InternalList = (props) => {
css`
.nb-list-container {
height: ${height ? height + 'px' : '100%'};
overflow-y: auto;
overflow-y: ${height ? 'auto' : null};
margin-left: -${token.marginLG}px;
margin-right: -${token.marginLG}px;
padding-left: ${token.marginLG}px;