Skip to content

Commit

Permalink
Merge pull request #1032 from DSD-DBS/better-mobile-space-usage
Browse files Browse the repository at this point in the history
feat: Improve diagram cache margins on mobile phones
  • Loading branch information
MoritzWeber0 authored Oct 10, 2023
2 parents e2bd86b + 350617c commit 1e68933
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,8 @@ <h2>View diagrams</h2>
>
No diagrams for the given filter found. Please remove your search query.
</div>
<div class="w-full md:hidden sticky bottom-0 bg-white">
<mat-divider id="bottom-divider"></mat-divider>
<button class="w-full" mat-button mat-dialog-close>Close</button>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,16 @@ export class ModelDiagramDialogComponent {
const loadingDiagram = this.diagrams[diagram.uuid];
if (!loadingDiagram.loading) {
this.dialog.open(ModelDiagramPreviewDialogComponent, {
height: '80vh',
width: '80vw',
maxWidth: '100vw',
panelClass: [
'md:w-[85vw]',
'md:h-[85vw]',
'md:max-h-[85vh]',
'max-h-full',
'w-full',
'h-full',
'!max-w-full',
],
data: {
diagram: diagram,
content: loadingDiagram.content,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,15 @@ export class ModelOverviewComponent implements OnInit {

openDiagramsDialog(model: Model): void {
this.dialog.open(ModelDiagramDialogComponent, {
height: '80vh',
width: '80vw',
maxWidth: '100vw',
panelClass: [
'md:w-[85vw]',
'md:h-[85vw]',
'md:max-h-[85vh]',
'max-h-full',
'w-full',
'h-full',
],
data: { modelSlug: model.slug, projectSlug: this.projectSlug },
});
}
Expand Down

0 comments on commit 1e68933

Please sign in to comment.