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.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(conditional-formatting): keep wrapper errors in layout (#7421)
白熱cb0560db1595
diff --git a/packages/sheets-conditional-formatting-ui/src/views/wrapper-error/WrapperError.tsx b/packages/sheets-conditional-formatting-ui/src/views/wrapper-error/WrapperError.tsxindex 49ee7dd4dc..8d6a6beaa2 100644--- a/packages/sheets-conditional-formatting-ui/src/views/wrapper-error/WrapperError.tsx+++ b/packages/sheets-conditional-formatting-ui/src/views/wrapper-error/WrapperError.tsx@@ -22,13 +22,13 @@ export const WrapperError = (props: {children: ReactElement;}) => {return (- <div className="univer-relative">- <div- className="univer-absolute univer-bottom-[-13px] univer-z-[999] univer-text-[10px] univer-text-red-500"- >- {props.errorText}- </div>+ <div>{props.children}+ {props.errorText && (+ <div className="univer-mt-1 univer-text-xs univer-text-red-500">+ {props.errorText}+ </div>+ )}</div>);};