Skip to content

Commit

Permalink
style: update workbench styles
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping committed Jul 19, 2023
1 parent 8414425 commit 494f311
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/editor-skeleton/src/layouts/workbench.less
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ body {
align-items: center;
.lc-title {
flex-direction: column;
width: 46px;
width: calc(var(--left-area-width) - 2px);
height: 46px;
display: flex;
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion packages/shell/src/api/setters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class Setters implements IPublicApiSetters {
const workspace = globalContext.get('workspace');
if (workspace.isActive) {
return untracked(() => {
if (!workspace.window.innerSetters) {
if (!workspace.window?.innerSetters) {
logger.error('setter api 调用时机出现问题,请检查');
return this[innerSettersSymbol];
}
Expand Down
2 changes: 1 addition & 1 deletion packages/shell/src/api/skeleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class Skeleton implements IPublicApiSkeleton {
}
const workspace = globalContext.get('workspace');
if (workspace.isActive) {
if (!workspace.window.innerSkeleton) {
if (!workspace.window?.innerSkeleton) {
logger.error('skeleton api 调用时机出现问题,请检查');
return this[innerSkeletonSymbol];
}
Expand Down
2 changes: 1 addition & 1 deletion packages/workspace/src/layouts/workbench.less
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ body {
align-items: center;
.lc-title {
flex-direction: column;
width: 46px;
width: calc(var(--left-area-width) - 2px);
height: 46px;
display: flex;
align-items: center;
Expand Down

0 comments on commit 494f311

Please sign in to comment.