Skip to content

Commit

Permalink
chore: Add panel-dialog.scss for customizing panel dialog width
Browse files Browse the repository at this point in the history
  • Loading branch information
yosvelquintero committed Jul 15, 2024
1 parent 365439b commit 146bb43
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { JssFormService } from './services';
<vcl-panel-dialog
[showCloseButton]="true"
(close)="tplLayer.close()"
style="min-width: 420px;"
class="panel-dialog"
>
<vcl-panel-title>{{ title }}</vcl-panel-title>
<div class="row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { JssFormService } from './services';
<vcl-panel-dialog
[showCloseButton]="true"
(close)="tplLayer.close()"
style="min-width: 420px;"
class="panel-dialog"
>
<vcl-panel-title>{{ title }}</vcl-panel-title>
<div class="row">
Expand Down
1 change: 1 addition & 0 deletions packages/modules/ui/src/lib/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@use './forms.scss';
@use './orders.scss';
@use './page.scss';
@use './panel-dialog.scss';
@use './products.scss';
@use './toolbar.scss';
@use './public.scss';
Expand Down
11 changes: 11 additions & 0 deletions packages/modules/ui/src/lib/styles/panel-dialog.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.panel-dialog {
width: 700px;

@media (max-width: 767px) {
width: 600px;
}

@media (max-width: 430px) {
width: 400px;
}
}

0 comments on commit 146bb43

Please sign in to comment.