Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix(sheets-filter): fix the style issues of the filter panel (#4911)

白熱d302f398a88c
diff --git a/packages/design/src/components/tree/Tree.tsx b/packages/design/src/components/tree/Tree.tsx
index 255e5b05e3..0020970acf 100644
--- a/packages/design/src/components/tree/Tree.tsx
+++ b/packages/design/src/components/tree/Tree.tsx
@@ -182,7 +182,7 @@ export function Tree(props: ITreeProps) {
}}
>
<Tooltip className="univer-w-full univer-truncate" showIfEllipsis placement="top" title={title}>
- <>{title}</>
+ {title}
</Tooltip>
</div>
diff --git a/packages/sheets-filter-ui/src/views/components/SheetsFilterByValuesPanel.tsx b/packages/sheets-filter-ui/src/views/components/SheetsFilterByValuesPanel.tsx
index b5f29242f5..1a49d2dbfd 100644
--- a/packages/sheets-filter-ui/src/views/components/SheetsFilterByValuesPanel.tsx
+++ b/packages/sheets-filter-ui/src/views/components/SheetsFilterByValuesPanel.tsx
@@ -117,7 +117,9 @@ export function FilterByValue(props: { model: ByValuesModel }) {
>
<span className={styles.sheetsFilterPanelValuesItemCount}>{`(${item.count})`}</span>
<a
- className="univer-box-border univer-hidden univer-h-4 univer-px-1.5"
+ className={`
+ univer-box-border univer-hidden univer-h-4 univer-whitespace-nowrap univer-px-1.5
+ `}
onClick={() => {
const filterValues = [];
if (item.children) {