mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Merge pull request #1009 from dragere/patch-2
Better handle long tags on small cards
This commit is contained in:
commit
6a3735822d
@ -1,3 +1,6 @@
|
|||||||
a {
|
a {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
white-space: normal;
|
||||||
|
word-break: break-word;
|
||||||
|
text-align: end;
|
||||||
}
|
}
|
||||||
|
@ -10,10 +10,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="top: 0; right: 0; font-size: large" class="text-end position-absolute me-1">
|
<div class="tags d-flex flex-column text-end position-absolute me-1 fs-6">
|
||||||
<div *ngFor="let t of getTagsLimited$() | async">
|
<app-tag *ngFor="let t of getTagsLimited$() | async" [tag]="t" (click)="clickTag.emit(t.id);$event.stopPropagation()" [clickable]="true" linkTitle="Filter by tag" i18n-linkTitle></app-tag>
|
||||||
<app-tag [tag]="t" (click)="clickTag.emit(t.id);$event.stopPropagation()" [clickable]="true" linkTitle="Filter by tag" i18n-linkTitle></app-tag>
|
|
||||||
</div>
|
|
||||||
<div *ngIf="moreTags">
|
<div *ngIf="moreTags">
|
||||||
<span class="badge badge-secondary">+ {{moreTags}}</span>
|
<span class="badge badge-secondary">+ {{moreTags}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -78,3 +78,11 @@
|
|||||||
a {
|
a {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tags {
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
max-width: 80%;
|
||||||
|
row-gap: .2rem;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user