Skip to content

Commit

Permalink
fix: #333 made the studio step two header, mobile friendly (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
deltork authored Sep 11, 2024
1 parent 4d5a862 commit 90151e9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/studio-web/src/app/demo/demo.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<section>
<div class="container" *ngIf="studioService.render$ | async">
<div class="row">
<div class="col-9">
<div class="col col-md-6 col-lg-9">
<h2
id="readalong-congratulations"
i18n="Congratulations message"
Expand All @@ -10,7 +10,7 @@
Congratulations! Here's your ReadAlong!
</h2>
</div>
<div class="col-3">
<div class="col col-md-6 col-lg-3">
<ras-shared-download
(downloadButtonClicked)="download($event)"
></ras-shared-download>
Expand Down Expand Up @@ -38,7 +38,7 @@
[(ngModel)]="studioService.slots.title"
[ngStyle]="{
'width.ch': studioService.slots.title.length,
'min-width.ch': 20
'min-width.ch': 20,
}"
style="border: none"
placeholder="Enter your title here"
Expand All @@ -49,7 +49,7 @@
[(ngModel)]="studioService.slots.subtitle"
[ngStyle]="{
'width.ch': studioService.slots.subtitle.length,
'min-width.ch': 20
'min-width.ch': 20,
}"
style="border: none"
placeholder="Enter your subtitle here"
Expand Down
5 changes: 5 additions & 0 deletions packages/studio-web/src/app/demo/demo.component.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#readalong-congratulations
text-align: center
@media (min-width: 768px)
#readalong-congratulations
text-align: center
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="download__buttons">
<mat-form-field class="d-none d-lg-block" appearance="fill">
<mat-form-field class="d-lg-block" appearance="fill">
<mat-label i18n="Output format">Output Format</mat-label>
<mat-select [(ngModel)]="selectedOutputFormat">
<mat-option *ngFor="let format of outputFormats" [value]="format.value">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@
button.download
margin-top: 5px
margin-left: 15px
justify-content: flex-end
justify-content: center

@media (min-width: 768px)
.download__buttons
justify-content: flex-end

0 comments on commit 90151e9

Please sign in to comment.