Refactor app detail component layout and styling for improved responsiveness and clarity
This commit is contained in:
parent
d9137a7d79
commit
e6b666004d
@ -19,11 +19,10 @@
|
|||||||
<span class="title">{{ item.name }}</span>
|
<span class="title">{{ item.name }}</span>
|
||||||
|
|
||||||
@if (item.description) {
|
@if (item.description) {
|
||||||
<span class="spacer">|</span>
|
<span class="description" [title]="item.description">{{ item.description }}</span>
|
||||||
<span class="description">{{ item.description }}</span>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="actions">
|
<span class="actions" [ngClass]="{'span-2': !item.description}">
|
||||||
<button [routerLink]="metadata + '/' + item.id" class="primary outline">View Details</button>
|
<button [routerLink]="metadata + '/' + item.id" class="primary outline">View Details</button>
|
||||||
</span>
|
</span>
|
||||||
</app-panel>
|
</app-panel>
|
||||||
|
|||||||
@ -1,14 +1,32 @@
|
|||||||
:host {
|
:host {
|
||||||
.authority-item {
|
.authority-item {
|
||||||
display: flex;
|
display: inline-grid;
|
||||||
|
gap: 1rem;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.description, .spacer {
|
.span-2 {
|
||||||
|
grid-column: span 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.description {
|
||||||
color: var(--neutral-40);
|
color: var(--neutral-40);
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.actions {
|
.actions {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .description:before {
|
||||||
|
color: var(--neutral-40);
|
||||||
|
content: '>';
|
||||||
|
margin-right: 1rem;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,25 +1,24 @@
|
|||||||
import {Component, inject, signal} from '@angular/core';
|
import {Component, inject, signal} from '@angular/core';
|
||||||
import {TabGroup, TabGroupComponent} from '../../tab-group/tab-group.component';
|
import {TabGroup, TabGroupComponent} from '../../tab-group/tab-group.component';
|
||||||
import {SubjectListComponent} from '../../subject/subject-list/subject-list.component';
|
|
||||||
import {ListComponent} from '../../list/list.component';
|
import {ListComponent} from '../../list/list.component';
|
||||||
import {GroupDto} from '../../../clients/gandalf/mithrandir/dtos/group-dto';
|
import {GroupDto} from '../../../clients/gandalf/mithrandir/dtos/group-dto';
|
||||||
import {RoleDto} from '../../../clients/gandalf/mithrandir/dtos/role-dto';
|
import {RoleDto} from '../../../clients/gandalf/mithrandir/dtos/role-dto';
|
||||||
import {AuthorityDto} from '../../../clients/gandalf/mithrandir/dtos/authority-dto';
|
import {AuthorityDto} from '../../../clients/gandalf/mithrandir/dtos/authority-dto';
|
||||||
import {ActivatedRoute, Router, RouterLink} from '@angular/router';
|
import {ActivatedRoute, Router, RouterLink} from '@angular/router';
|
||||||
import {TenantService} from '../../../clients/gandalf/mithrandir/tenant/tenant.service';
|
|
||||||
import {PanelComponent} from '../../panel/panel.component';
|
import {PanelComponent} from '../../panel/panel.component';
|
||||||
import {AppService} from '../../../clients/gandalf/mithrandir/app/app.service';
|
import {AppService} from '../../../clients/gandalf/mithrandir/app/app.service';
|
||||||
import {ActiveTabDirective} from '../../tab-group/active-tab.directive';
|
import {ActiveTabDirective} from '../../tab-group/active-tab.directive';
|
||||||
|
import {NgClass} from '@angular/common';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-app-detail',
|
selector: 'app-app-detail',
|
||||||
imports: [
|
imports: [
|
||||||
TabGroupComponent,
|
TabGroupComponent,
|
||||||
SubjectListComponent,
|
|
||||||
ListComponent,
|
ListComponent,
|
||||||
PanelComponent,
|
PanelComponent,
|
||||||
RouterLink,
|
RouterLink,
|
||||||
ActiveTabDirective
|
ActiveTabDirective,
|
||||||
|
NgClass
|
||||||
],
|
],
|
||||||
templateUrl: './app-detail.component.html',
|
templateUrl: './app-detail.component.html',
|
||||||
styleUrl: './app-detail.component.scss',
|
styleUrl: './app-detail.component.scss',
|
||||||
|
|||||||
@ -1,5 +1,12 @@
|
|||||||
:host {
|
:host {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 1rem;
|
gap: 0.5rem;
|
||||||
|
|
||||||
|
grid-template-columns: min-content auto min-content;
|
||||||
|
|
||||||
|
& > ::ng-deep * {
|
||||||
|
grid-column: span 3;
|
||||||
|
grid-template-columns: subgrid;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
4
src/dotnet/.idea/.idea.Suspectus.Gandalf/.idea/watcherTasks.xml
generated
Normal file
4
src/dotnet/.idea/.idea.Suspectus.Gandalf/.idea/watcherTasks.xml
generated
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectTasksOptions" suppressed-tasks="SCSS" />
|
||||||
|
</project>
|
||||||
Loading…
x
Reference in New Issue
Block a user