style: update workbench styles

This commit is contained in:
liujuping 2023-07-19 11:16:17 +08:00 committed by 林熠
parent 412cb16628
commit 16fde64dee
4 changed files with 4 additions and 4 deletions

View File

@ -318,7 +318,7 @@ body {
align-items: center; align-items: center;
.lc-title { .lc-title {
flex-direction: column; flex-direction: column;
width: 46px; width: calc(var(--left-area-width) - 2px);
height: 46px; height: 46px;
display: flex; display: flex;
align-items: center; align-items: center;

View File

@ -19,7 +19,7 @@ export class Setters implements IPublicApiSetters {
const workspace = globalContext.get('workspace'); const workspace = globalContext.get('workspace');
if (workspace.isActive) { if (workspace.isActive) {
return untracked(() => { return untracked(() => {
if (!workspace.window.innerSetters) { if (!workspace.window?.innerSetters) {
logger.error('setter api 调用时机出现问题,请检查'); logger.error('setter api 调用时机出现问题,请检查');
return this[innerSettersSymbol]; return this[innerSettersSymbol];
} }

View File

@ -22,7 +22,7 @@ export class Skeleton implements IPublicApiSkeleton {
} }
const workspace = globalContext.get('workspace'); const workspace = globalContext.get('workspace');
if (workspace.isActive) { if (workspace.isActive) {
if (!workspace.window.innerSkeleton) { if (!workspace.window?.innerSkeleton) {
logger.error('skeleton api 调用时机出现问题,请检查'); logger.error('skeleton api 调用时机出现问题,请检查');
return this[innerSkeletonSymbol]; return this[innerSkeletonSymbol];
} }

View File

@ -276,7 +276,7 @@ body {
align-items: center; align-items: center;
.lc-title { .lc-title {
flex-direction: column; flex-direction: column;
width: 46px; width: calc(var(--left-area-width) - 2px);
height: 46px; height: 46px;
display: flex; display: flex;
align-items: center; align-items: center;