fix: Consistent dialogs (#1842)

* fix/consistent-dialogs

* fix: enforce consistent mobile dialog width

* fix: cover search dialog image size
This commit is contained in:
Muppetteer
2025-12-13 21:08:43 -07:00
committed by GitHub
parent b64c30f3bc
commit 0486a4f070
25 changed files with 333 additions and 420 deletions
@@ -1,13 +1,11 @@
.dashboard-settings {
width: 1000px;
max-width: 1200px;
max-width: 600px;
min-height: 300px;
padding: 2rem 1rem 0 1rem;
margin: 0 auto;
@media (max-width: 768px) {
width: 100%;
max-width: 100%;
padding: 3rem 1rem 0 1rem;
box-sizing: border-box;
}
@@ -14,7 +14,6 @@ import {ProgressSpinner} from 'primeng/progressspinner';
import {TooltipModule} from 'primeng/tooltip';
import {DashboardConfigService} from '../../services/dashboard-config.service';
import {ScrollerConfig, ScrollerType} from '../../models/dashboard-config.model';
import {DashboardSettingsComponent} from '../dashboard-settings/dashboard-settings.component';
import {MagicShelfService} from '../../../magic-shelf/service/magic-shelf.service';
import {BookRuleEvaluatorService} from '../../../magic-shelf/service/book-rule-evaluator.service';
import {GroupRule} from '../../../magic-shelf/component/magic-shelf-component';
@@ -39,7 +38,6 @@ const DEFAULT_MAX_ITEMS = 20;
standalone: true
})
export class MainDashboardComponent implements OnInit {
ref: DynamicDialogRef | undefined | null;
private bookService = inject(BookService);
private dialogLauncher = inject(DialogLauncherService);
@@ -203,14 +201,10 @@ export class MainDashboardComponent implements OnInit {
}
openDashboardSettings(): void {
this.ref = this.dialogLauncher.open({
component: DashboardSettingsComponent,
header: 'Configure Dashboard',
showHeader: false
});
this.dialogLauncher.openDashboardSettingsDialog();
}
createNewLibrary() {
this.dialogLauncher.openLibraryCreatorDialog();
this.dialogLauncher.openLibraryCreateDialog();
}
}