Skip to content

Commit

Permalink
fix: remove ui jumps during control scheme start
Browse files Browse the repository at this point in the history
  • Loading branch information
nvsukhanov committed Mar 20, 2024
1 parent 479ff0b commit a1d4caf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
}

.add-widget-button-container {
border: 3px dashed var(--app-well-color);
border-width: 3px;
border-style: dashed;
border-color: var(--app-well-color);
border-radius: 10px;
display: flex;
justify-content: center;
Expand All @@ -16,12 +18,12 @@
height: 100%;
box-sizing: border-box;

transition: width 0.5s, border 0.5s;
transition: width 0.5s, border-color 0.5s;
overflow: hidden;

&_running {
width: 0;
border: none;
border-color: rgba(0,0,0,0);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ <h3 class="section-title">
</button>
</section>

@if (widgets().length || canAddWidgets()) {
<section class="widgets-content"
[class.widgets-content_editable]="!isSchemeRunning()"
>
<page-control-scheme-view-control-scheme-widgets-grid [widgetConfigs]="widgets()"
[editable]="canDeleteOrEditWidgets()"
[canAddWidget]="canAddWidgets()"
(deleteWidget)="onDeleteWidget($event)"
(editWidget)="onEditWidget($event)"
(addWidget)="onAddWidget()"
></page-control-scheme-view-control-scheme-widgets-grid>
</section>
}
<section class="widgets-content"
[class.widgets-content_editable]="!isSchemeRunning()"
>
<page-control-scheme-view-control-scheme-widgets-grid [widgetConfigs]="widgets()"
[editable]="canDeleteOrEditWidgets()"
[canAddWidget]="canAddWidgets()"
(deleteWidget)="onDeleteWidget($event)"
(editWidget)="onEditWidget($event)"
(addWidget)="onAddWidget()"
></page-control-scheme-view-control-scheme-widgets-grid>
</section>

0 comments on commit a1d4caf

Please sign in to comment.