fixed grid
This commit is contained in:
parent
fff8f0fc35
commit
7094ece351
@ -105,16 +105,16 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div *ngFor="let config of displayedInFileListAttributes">
|
||||
{{ fileStatus.fileAttributes.attributeIdToValue[config.id] }}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div [class.error]="fileStatus.isError" class="small-label">
|
||||
{{ fileStatus.added | date: 'd MMM. yyyy, hh:mm a' }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div *ngFor="let config of displayedInFileListAttributes">
|
||||
{{ fileStatus.fileAttributes.attributeIdToValue[config.id] }}
|
||||
</div>
|
||||
|
||||
<!-- always show A for error-->
|
||||
<div *ngIf="fileStatus.isError">
|
||||
<redaction-annotation-icon color="#dd4d50" label="A" type="square"></redaction-annotation-icon>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
@import '../../../../../assets/styles/red-mixins';
|
||||
|
||||
:root {
|
||||
--dynamic-columns: '0';
|
||||
--dynamic-columns: '1fr';
|
||||
}
|
||||
|
||||
.file-upload-input {
|
||||
@ -21,7 +21,7 @@ iqser-table-column-name::ng-deep {
|
||||
|
||||
cdk-virtual-scroll-viewport {
|
||||
::ng-deep.cdk-virtual-scroll-content-wrapper {
|
||||
grid-template-columns: auto 3fr repeat(var(--dynamic-columns), 1fr) 2fr 1fr 2fr 1fr auto 11px;
|
||||
grid-template-columns: auto 3fr 2fr repeat(var(--dynamic-columns, 1), 1fr) 2fr 1fr auto 11px;
|
||||
|
||||
.table-item {
|
||||
> div {
|
||||
@ -71,7 +71,7 @@ cdk-virtual-scroll-viewport {
|
||||
|
||||
&.has-scrollbar:hover {
|
||||
::ng-deep.cdk-virtual-scroll-content-wrapper {
|
||||
grid-template-columns: auto 3fr repeat(var(--dynamic-columns), 1fr) 2fr 1fr 2fr 1fr auto;
|
||||
grid-template-columns: auto 3fr 2fr repeat(var(--dynamic-columns, 1), 1fr) 2fr 1fr auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -270,9 +270,14 @@ export class DossierOverviewScreenComponent extends ListingComponent<FileStatusW
|
||||
dynamicColumns.push({ label: config.label, notTranslatable: true });
|
||||
}
|
||||
}
|
||||
this.tableColumnConfigs = [this._defaultTableConfigs[0], ...dynamicColumns, ...this._defaultTableConfigs.slice(1)];
|
||||
this.dynamicColumnsCount = dynamicColumns.length;
|
||||
(this._elementRef.nativeElement as HTMLElement).style.setProperty('--dynamic-columns', `${this.dynamicColumnsCount}`);
|
||||
this.tableColumnConfigs = [
|
||||
this._defaultTableConfigs[0],
|
||||
this._defaultTableConfigs[1],
|
||||
...dynamicColumns,
|
||||
...this._defaultTableConfigs.slice(2)
|
||||
];
|
||||
this.dynamicColumnsCount = dynamicColumns.length + 1; // zero is not allowed in repeat, by default we repeat 1 column
|
||||
document.documentElement.style.setProperty('--dynamic-columns', `${this.dynamicColumnsCount}`);
|
||||
}
|
||||
|
||||
private _loadEntitiesFromState() {
|
||||
@ -386,7 +391,10 @@ export class DossierOverviewScreenComponent extends ListingComponent<FileStatusW
|
||||
slug: key,
|
||||
label: key,
|
||||
icon: 'red:template',
|
||||
filters: [...filterValue].map<NestedFilter>((value: string) => ({ key: value, label: value })),
|
||||
filters: [...filterValue].map<NestedFilter>((value: string) => ({
|
||||
key: value,
|
||||
label: value
|
||||
})),
|
||||
checker: (input: FileStatusWrapper, filter: NestedFilter) => filter.label === input.fileAttributes.attributeIdToValue[id]
|
||||
});
|
||||
});
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"OAUTH_URL": "https://red-staging.iqser.cloud/auth/realms/redaction",
|
||||
"API_URL": "https://red-staging.iqser.cloud/redaction-gateway-v1",
|
||||
"OAUTH_URL": "https://qa4.iqser.cloud/auth/realms/redaction",
|
||||
"API_URL": "https://qa4.iqser.cloud/redaction-gateway-v1",
|
||||
"OAUTH_CLIENT_ID": "redaction",
|
||||
"BACKEND_APP_VERSION": "4.4.40",
|
||||
"FRONTEND_APP_VERSION": "1.1",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user