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: tab span bug

jerry2d017d65fdc9
diff --git a/packages/base-sheets/src/Controller/SheetBarController.ts b/packages/base-sheets/src/Controller/SheetBarController.ts
index 116f7163b8..315d4a4b5d 100644
--- a/packages/base-sheets/src/Controller/SheetBarController.ts
+++ b/packages/base-sheets/src/Controller/SheetBarController.ts
@@ -21,10 +21,10 @@ export class SheetBarControl {
case 'copySheet': {
const workbook = this._plugin.getContext().getWorkBook();
const activeSheet = workbook.getActiveSheet();
- const sheetContex = this._plugin.getContext();
- const genname = sheetContex.getGenName();
+ const sheetContext = this._plugin.getContext();
+ const genName = sheetContext.getGenName();
const locale = this._plugin.getGlobalContext().getLocale();
- const copySheet = activeSheet.copy(genname.onlyName(`${activeSheet.getName()} ${locale.get('BaseSheetLocale.CopyName')}`));
+ const copySheet = activeSheet.copy(genName.onlyName(`${activeSheet.getName()} ${locale.get('BaseSheetLocale.CopyName')}`));
if (workbook) {
workbook.insertSheet(workbook.getActiveSheetIndex() + 1, copySheet.getConfig());
}
diff --git a/packages/core/src/Basics/UniverObserver.ts b/packages/core/src/Basics/UniverObserver.ts
index 3b760c6bee..81f8895329 100644
--- a/packages/core/src/Basics/UniverObserver.ts
+++ b/packages/core/src/Basics/UniverObserver.ts
@@ -7,12 +7,4 @@ export type UniverObserver<T> = {
onAfterChangeUISkinObservable: Observable<string>;
onAfterChangeUILocaleObservable: Observable<string>;
onViewComponentFocusChange: Observable<void>;
- onAddSheet: Observable<void>;
- onDeleteSheet: Observable<void>;
- onHideSheet: Observable<void>;
- onToLeftSheet: Observable<void>;
- onToRightSheet: Observable<void>;
- onCopySheet: Observable<void>;
- onRemoveSheet: Observable<void>;
- onSheetColor: Observable<void>;
};
diff --git a/packages/ui-plugin-sheets/src/View/SheetBar/index.module.less b/packages/ui-plugin-sheets/src/View/SheetBar/index.module.less
index e4c3d287ea..f30433802a 100644
--- a/packages/ui-plugin-sheets/src/View/SheetBar/index.module.less
+++ b/packages/ui-plugin-sheets/src/View/SheetBar/index.module.less
@@ -100,6 +100,7 @@
.slide-tab-span {
outline-color: rgb(0, 162, 255);
+ white-space: nowrap;
}
.slide-tab-icon {
@@ -228,4 +229,4 @@
color: #eee;
}
}
-}
\ No newline at end of file
+}