mirror of
https://github.com/dream-num/univer.git
synced 2026-09-24 15:32:18 +08:00
chore: fix filter panel auto height (#5452)
This commit is contained in:
@@ -83,7 +83,7 @@ export function FilterByCondition(props: { model: ByConditionsModel }) {
|
||||
return (
|
||||
<div
|
||||
data-u-comp="sheets-filter-panel-conditions-container"
|
||||
className="univer-flex univer-h-full univer-flex-col"
|
||||
className="univer-flex univer-h-full univer-min-h-[300px] univer-flex-col"
|
||||
>
|
||||
{/* primary condition */}
|
||||
{(condition && formParams) && (
|
||||
|
||||
@@ -63,7 +63,7 @@ export function FilterByValue(props: { model: ByValuesModel }) {
|
||||
return (
|
||||
<div
|
||||
data-u-comp="sheets-filter-panel-values-container"
|
||||
className="univer-flex univer-h-full univer-flex-col"
|
||||
className="univer-flex univer-h-full univer-min-h-[300px] univer-flex-col"
|
||||
>
|
||||
<Input
|
||||
autoFocus
|
||||
@@ -122,7 +122,7 @@ export function FilterByValue(props: { model: ByValuesModel }) {
|
||||
data={items}
|
||||
defaultExpandAll={false}
|
||||
valueGroup={extractCheckedKeys(items)}
|
||||
height={180}
|
||||
// height={180}
|
||||
onChange={(node) => {
|
||||
model.onFilterCheckToggled(node as IFilterByValueWithTreeItem);
|
||||
}}
|
||||
|
||||
@@ -72,7 +72,7 @@ export function FilterPanel() {
|
||||
<div
|
||||
data-u-comp="sheets-filter-panel"
|
||||
className={`
|
||||
univer-box-border univer-flex univer-h-[442px] univer-w-[312px] univer-flex-col univer-rounded-lg
|
||||
univer-box-border univer-flex univer-max-h-[500px] univer-w-[312px] univer-flex-col univer-rounded-lg
|
||||
univer-bg-white univer-p-4 univer-shadow-lg
|
||||
dark:!univer-border-gray-600 dark:!univer-bg-gray-700
|
||||
`}
|
||||
|
||||
Reference in New Issue
Block a user