Skip to content

Commit

Permalink
style: add --workspace-left-area-width
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping committed Nov 20, 2023
1 parent 3c4bd1d commit 6a8fdc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/docs/guide/expand/editor/theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ sidebar_position: 9
- `--workspace-sub-top-area-height`: 应用级二级 topArea 高度
- `--workspace-sub-top-area-margin`: 应用级二级 topArea margin
- `--workspace-sub-top-area-padding`: 应用级二级 topArea padding
- `--workspace-left-area-width`: 应用级 leftArea width

### 生态使用主题色变量

Expand Down
3 changes: 2 additions & 1 deletion packages/editor-skeleton/src/layouts/workbench.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
--popup-border-radius: @popup-border-radius;

--left-area-width: 48px;
--workspace-left-area-width: 48px;
--right-area-width: 300px;
--top-area-height: 48px;
--toolbar-height: 36px;
Expand Down Expand Up @@ -273,7 +274,7 @@ body {
}
.lc-left-area, .lc-workspace-left-area {
height: 100%;
width: var(--left-area-width);
width: var(--workspace-left-area-width, --left-area-width);
display: none;
flex-shrink: 0;
flex-direction: column;
Expand Down

0 comments on commit 6a8fdc8

Please sign in to comment.