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(ui): update MobileMenu for clarity and adjust button class order

白熱a78bc5c25a46
diff --git a/packages/ui/src/components/menu/mobile/MobileMenu.tsx b/packages/ui/src/components/menu/mobile/MobileMenu.tsx
index 7ae6b7938f..7010f98cab 100644
--- a/packages/ui/src/components/menu/mobile/MobileMenu.tsx
+++ b/packages/ui/src/components/menu/mobile/MobileMenu.tsx
@@ -38,8 +38,8 @@ export function MobileMenu(props: IBaseMenuProps) {
// There is no submenu on mobile devices, so if there are sub menu items, we should flat them.
const flattedMenuItems = useMemo(() => {
const menuItems = menuManagerService.getMenuByPositionKey(menuType);
- // 递归把所有的子菜单项都展开
+ // Flat all menu items recursively.
function flatMenuItems(items: IMenuSchema[]): IMenuSchema[] {
return items.reduce((acc, item) => {
if (item.children) {
@@ -95,7 +95,7 @@ function MobileMenuItem(props: IMobileMenuItemProps) {
<button
type="button"
className={clsx(`
- univer-flex univer-w-18 univer-flex-col univer-items-center univer-justify-center univer-border-none
+ univer-w-18 univer-flex univer-flex-col univer-items-center univer-justify-center univer-border-none
univer-bg-transparent univer-text-white
[&>span]:univer-mt-0.5 [&>span]:univer-w-full [&>span]:univer-truncate [&>span]:univer-text-sm
[&>svg]:univer-size-[18px] [&>svg]:univer-text-lg