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(design): fix the styling issue of ButtonGroup (#5363)
白熱2480eec0fd90
diff --git a/packages/design/src/components/button/ButtonGroup.tsx b/packages/design/src/components/button/ButtonGroup.tsxindex ec39d33944..4cdb25d61d 100644--- a/packages/design/src/components/button/ButtonGroup.tsx+++ b/packages/design/src/components/button/ButtonGroup.tsx@@ -40,14 +40,10 @@ export const ButtonGroup = ({return (<div- className={clsx(- 'univer-flex',- {- 'univer-flex-col': isVertical,- 'univer-w-fit': isVertical,- },- className- )}+ className={clsx('univer-grid', {+ 'univer-grid-flow-row': isVertical,+ 'univer-w-fit': isVertical,+ }, className)}>{Children.map(children, (child, index) => {const isFirst = index === 0;diff --git a/packages/sheets-sort-ui/src/views/EmbedSortBtn.tsx b/packages/sheets-sort-ui/src/views/EmbedSortBtn.tsxindex 74416073d8..537e35d8d9 100644--- a/packages/sheets-sort-ui/src/views/EmbedSortBtn.tsx+++ b/packages/sheets-sort-ui/src/views/EmbedSortBtn.tsx@@ -49,9 +49,7 @@ export default function EmbedSortBtn(props: IEmbedSortBtnProps) {}, [range, colIndex, sheetsSortUIService, univerInstanceService, onClose]);return (- <ButtonGroup- className="univer-mb-3 univer-grid univer-w-full univer-grid-flow-col univer-grid-cols-2"- >+ <ButtonGroup className="univer-mb-3 univer-w-full univer-grid-cols-2"><Button onClick={() => apply(true)}><AscendingIcon />{localeService.t('sheets-sort.general.sort-asc')}