Skip to content

Commit 16fde64

Browse files
liujupingJackLian
authored andcommitted
style: update workbench styles
1 parent 412cb16 commit 16fde64

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/editor-skeleton/src/layouts/workbench.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ body {
318318
align-items: center;
319319
.lc-title {
320320
flex-direction: column;
321-
width: 46px;
321+
width: calc(var(--left-area-width) - 2px);
322322
height: 46px;
323323
display: flex;
324324
align-items: center;

packages/shell/src/api/setters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class Setters implements IPublicApiSetters {
1919
const workspace = globalContext.get('workspace');
2020
if (workspace.isActive) {
2121
return untracked(() => {
22-
if (!workspace.window.innerSetters) {
22+
if (!workspace.window?.innerSetters) {
2323
logger.error('setter api 调用时机出现问题,请检查');
2424
return this[innerSettersSymbol];
2525
}

packages/shell/src/api/skeleton.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class Skeleton implements IPublicApiSkeleton {
2222
}
2323
const workspace = globalContext.get('workspace');
2424
if (workspace.isActive) {
25-
if (!workspace.window.innerSkeleton) {
25+
if (!workspace.window?.innerSkeleton) {
2626
logger.error('skeleton api 调用时机出现问题,请检查');
2727
return this[innerSkeletonSymbol];
2828
}

packages/workspace/src/layouts/workbench.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ body {
276276
align-items: center;
277277
.lc-title {
278278
flex-direction: column;
279-
width: 46px;
279+
width: calc(var(--left-area-width) - 2px);
280280
height: 46px;
281281
display: flex;
282282
align-items: center;

0 commit comments

Comments
 (0)