fix: avoid document name exceeding card width
This commit is contained in:
@@ -113,6 +113,18 @@ class Upload implements BlameableEntityInterface, TimestampableEntityInterface
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getTypeLabel(): string
|
||||||
|
{
|
||||||
|
return match($this->getType()) {
|
||||||
|
self::TYPE_PHOTO => 'Foto',
|
||||||
|
self::TYPE_CERTIFICATE => 'Lizenz',
|
||||||
|
self::TYPE_CONTRACT => 'Honorarvertrag',
|
||||||
|
self::TYPE_INVOICE => 'Honorarnote',
|
||||||
|
self::TYPE_DOCUMENT => 'Info',
|
||||||
|
default => 'Dokument',
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
public function getStatus(): ?string
|
public function getStatus(): ?string
|
||||||
{
|
{
|
||||||
return $this->status;
|
return $this->status;
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
{{ icon('download', 'w-4 h-4 shrink-0') }}
|
{{ icon('download', 'w-4 h-4 shrink-0') }}
|
||||||
<span>{{ document.owner.teamer.fullName(true) }}</span>
|
<span>{{ document.owner.teamer.fullName(true) }}</span>
|
||||||
{% include '_partials/_dot.html.twig' %}
|
{% include '_partials/_dot.html.twig' %}
|
||||||
<span>{{ document.originalFilename }}</span>
|
<span>{{ document.typeLabel }}</span>
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
Reference in New Issue
Block a user