Skip to content

Commit

Permalink
feat: save right sidebar width
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfuboy committed Jul 29, 2022
1 parent cee3a64 commit 97da28e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/workbench/browser/src/app/pages/api/api.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<!-- <eo-split-panel direction="row"> -->
<section class="relative" [ngStyle]="{ paddingRight: activeBar ? dyWidth + 'px' : '40px' }">
<router-outlet></router-outlet>
<eo-split-x *ngIf="activeBar" (x)="handleDrag($event)" [init]="[200, 250, 400]"></eo-split-x>
<eo-split-x *ngIf="activeBar" (x)="handleDrag($event)" [init]="[200, dyWidth, 400]"></eo-split-x>
<div
class="absolute top-0 bottom-0 right-0 flex right-bar"
[ngClass]="{ 'left-line': !activeBar }"
Expand Down
1 change: 0 additions & 1 deletion src/workbench/browser/src/app/pages/api/api.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ export class ApiComponent implements OnInit, OnDestroy {
}

toggleRightBar(status = null) {
this.dyWidth = 250;
if (status == null) {
this.activeBar = !this.activeBar;
return;
Expand Down

0 comments on commit 97da28e

Please sign in to comment.