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.

refactor(sheets-ui): adjust ribbon layout to make protection entry a labeled vertical control (#7327)

白熱99d436cea828
diff --git a/packages/sheets-ui/src/menu/schema.ts b/packages/sheets-ui/src/menu/schema.ts
index c2c4bd7f5b..01015a9dd8 100644
--- a/packages/sheets-ui/src/menu/schema.ts
+++ b/packages/sheets-ui/src/menu/schema.ts
@@ -310,7 +310,7 @@ export const menuSchema: MenuSchemaType = {
[RibbonStartGroup.LAYOUT]: {
[SetHorizontalTextAlignCommand.id]: {
order: 0,
- gridLayout: { row: 1, column: 3 },
+ gridLayout: { row: 1, column: 1 },
menuItemFactory: HorizontalAlignMenuItemFactory,
},
[SetVerticalTextAlignCommand.id]: {
@@ -358,7 +358,7 @@ export const menuSchema: MenuSchemaType = {
[RibbonStartGroup.OTHERS]: {
[AddRangeProtectionFromToolbarCommand.id]: {
order: 0,
- gridLayout: { row: 1, column: 3 },
+ gridLayout: { row: 1, column: 1, rowSpan: 2, showLabel: true },
menuItemFactory: sheetPermissionToolbarMenuFactory,
},
},