fix mobile buttons
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
<div mat-dialog-content>
|
<div mat-dialog-content>
|
||||||
<p>Bitte melde die in dieser Veranstaltung verwendeten CCLI-Titel. Die Meldung ist Teil der CCLI-Lizenz und sorgt dafür, dass Songwriter und Verlage korrekt vergütet werden.</p>
|
<p>Bitte melde die in dieser Veranstaltung verwendeten CCLI-Titel. Die Meldung ist Teil der CCLI-Lizenz und sorgt
|
||||||
|
dafür, dass Songwriter und Verlage korrekt vergütet werden.</p>
|
||||||
<p>
|
<p>
|
||||||
Die Meldung erfolgt über
|
Die Meldung erfolgt über
|
||||||
<a [href]="reportingUrl" rel="noreferrer" target="_blank">{{ reportingUrl }}</a>.
|
<a [href]="reportingUrl" rel="noreferrer" target="_blank">{{ reportingUrl }}</a>.
|
||||||
@@ -34,7 +35,7 @@
|
|||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div mat-dialog-actions>
|
<app-button-row>
|
||||||
<button [mat-dialog-close]="false" mat-button>Abbrechen</button>
|
<app-button (click)="dialogRef.close(false)" [icon]="faClose">Abbrechen</app-button>
|
||||||
<button [mat-dialog-close]="true" cdkFocusInitial mat-button>Alle CCLI-Titel wurden gemeldet</button>
|
<app-button (click)="dialogRef.close(true)" [icon]="faReport">Alle CCLI-Titel wurden gemeldet</app-button>
|
||||||
</div>
|
</app-button-row>
|
||||||
|
|||||||
@@ -72,3 +72,7 @@
|
|||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
app-button-row {
|
||||||
|
margin: 0 var(--gap-l) var(--gap-l);
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import {Component, inject} from '@angular/core';
|
import {Component, inject} from '@angular/core';
|
||||||
import {MAT_DIALOG_DATA, MatDialogActions, MatDialogClose, MatDialogContent} from '@angular/material/dialog';
|
import {MAT_DIALOG_DATA, MatDialogContent, MatDialogRef} from '@angular/material/dialog';
|
||||||
import {MatButton} from '@angular/material/button';
|
|
||||||
import {FaIconComponent} from '@fortawesome/angular-fontawesome';
|
import {FaIconComponent} from '@fortawesome/angular-fontawesome';
|
||||||
import {faArrowUpRightFromSquare, faCheck} from '@fortawesome/free-solid-svg-icons';
|
import {faArrowUpRightFromSquare, faCheck, faCompactDisc, faXmark} from '@fortawesome/free-solid-svg-icons';
|
||||||
|
import {ButtonRowComponent} from '../../../../widget-modules/components/button-row/button-row.component';
|
||||||
|
import {ButtonComponent} from '../../../../widget-modules/components/button/button.component';
|
||||||
|
|
||||||
export interface ReportDialogSong {
|
export interface ReportDialogSong {
|
||||||
title: string;
|
title: string;
|
||||||
@@ -15,7 +16,7 @@ export interface ReportDialogData {
|
|||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-report-dialog',
|
selector: 'app-report-dialog',
|
||||||
imports: [MatButton, MatDialogActions, MatDialogContent, MatDialogClose, FaIconComponent],
|
imports: [MatDialogContent, FaIconComponent, ButtonRowComponent, ButtonComponent],
|
||||||
templateUrl: './report-dialog.component.html',
|
templateUrl: './report-dialog.component.html',
|
||||||
styleUrl: './report-dialog.component.less',
|
styleUrl: './report-dialog.component.less',
|
||||||
standalone: true,
|
standalone: true,
|
||||||
@@ -25,6 +26,11 @@ export class ReportDialogComponent {
|
|||||||
public readonly faOpen = faArrowUpRightFromSquare;
|
public readonly faOpen = faArrowUpRightFromSquare;
|
||||||
public readonly faCheck = faCheck;
|
public readonly faCheck = faCheck;
|
||||||
public data = inject<ReportDialogData>(MAT_DIALOG_DATA);
|
public data = inject<ReportDialogData>(MAT_DIALOG_DATA);
|
||||||
|
public dialogRef = inject(MatDialogRef<ReportDialogComponent>);
|
||||||
|
|
||||||
|
public faReport = faCompactDisc;
|
||||||
|
public faClose = faXmark;
|
||||||
|
|
||||||
private readonly openedNumbers = new Set<string>();
|
private readonly openedNumbers = new Set<string>();
|
||||||
|
|
||||||
public getSongReportingUrl(ccliNumber: string): string {
|
public getSongReportingUrl(ccliNumber: string): string {
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
.row {
|
.row {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row-reverse;
|
flex-direction: row-reverse;
|
||||||
|
@media screen and (max-width: 860px) {
|
||||||
|
flex-direction: column-reverse;
|
||||||
|
}
|
||||||
|
gap: var(--gap-m);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
padding-top: var(--gap-l);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<button [disabled]="disabled" mat-button>
|
<button [disabled]="disabled">
|
||||||
@if (icon) {
|
@if (icon) {
|
||||||
<span><fa-icon [icon]="icon"></fa-icon><span class="content"> </span></span>
|
<span><fa-icon [icon]="icon"></fa-icon><span class="content"> </span></span>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,8 +8,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
color: var(--text);
|
display: flex;
|
||||||
|
color: var(--primary-color);
|
||||||
transition: var(--transition);
|
transition: var(--transition);
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 1rem;
|
||||||
|
background: var(--surface-strong);
|
||||||
|
|
||||||
|
border: 1px solid var(--primary-color);
|
||||||
|
padding: var(--gap-s);
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
:host(.full-width) & {
|
:host(.full-width) & {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -18,18 +26,19 @@ button {
|
|||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: var(--primary-active);
|
color: var(--primary-active);
|
||||||
|
background: var(--surface-subtle);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 860px) {
|
@media screen and (max-width: 860px) {
|
||||||
font-size: 30px;
|
font-size: 1.2rem;
|
||||||
|
width: 100%;
|
||||||
|
justify-content: center;
|
||||||
|
.button-content {
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-content {
|
|
||||||
@media screen and (max-width: 860px) {
|
|
||||||
display: none ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fa-icon {
|
fa-icon {
|
||||||
width: 20px;
|
width: 20px;
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import {Component, Input} from '@angular/core';
|
import {Component, Input} from '@angular/core';
|
||||||
import {IconProp} from '@fortawesome/fontawesome-svg-core';
|
import {IconProp} from '@fortawesome/fontawesome-svg-core';
|
||||||
import {MatButton} from '@angular/material/button';
|
|
||||||
|
|
||||||
import {FaIconComponent} from '@fortawesome/angular-fontawesome';
|
import {FaIconComponent} from '@fortawesome/angular-fontawesome';
|
||||||
|
|
||||||
@@ -8,7 +7,7 @@ import {FaIconComponent} from '@fortawesome/angular-fontawesome';
|
|||||||
selector: 'app-button',
|
selector: 'app-button',
|
||||||
templateUrl: './button.component.html',
|
templateUrl: './button.component.html',
|
||||||
styleUrls: ['./button.component.less'],
|
styleUrls: ['./button.component.less'],
|
||||||
imports: [MatButton, FaIconComponent],
|
imports: [FaIconComponent],
|
||||||
host: {
|
host: {
|
||||||
'[class.full-width]': 'fullWidth',
|
'[class.full-width]': 'fullWidth',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
@import "../../../../styles/shadow";
|
@import "../../../../styles/shadow";
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
margin: 20px 20px 0;
|
margin: var(--gap-l) var(--gap-l) 0;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background: var(--surface);
|
background: var(--surface);
|
||||||
backdrop-filter: blur(15px);
|
backdrop-filter: blur(15px);
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
width: 800px;
|
width: 800px;
|
||||||
position: relative;
|
position: relative;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
padding: 10px 0;
|
padding: var(--gap-m) 0;
|
||||||
box-shadow: var(--shadow-card-3);
|
box-shadow: var(--shadow-card-3);
|
||||||
|
|
||||||
@media screen and (max-width: 860px) {
|
@media screen and (max-width: 860px) {
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.padding {
|
&.padding {
|
||||||
padding: 20px;
|
padding: var(--gap-l);
|
||||||
}
|
}
|
||||||
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|||||||
@@ -42,7 +42,11 @@
|
|||||||
|
|
||||||
|
|
||||||
--mat-dialog-supporting-text-color: var(--text);
|
--mat-dialog-supporting-text-color: var(--text);
|
||||||
--mat-button-text-label-text-color: var(--color-primary-dark)
|
--mat-button-text-label-text-color: var(--color-primary-dark);
|
||||||
|
|
||||||
|
--gap-l: 20px;
|
||||||
|
--gap-m: calc(var(--gap-l) / 1.618);
|
||||||
|
--gap-s: calc(var(--gap-m) / 1.618);
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
|
|||||||
Reference in New Issue
Block a user