mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
fix: use grid for better project title responsiveness and ellipsis
This commit is contained in:
@@ -79,7 +79,7 @@ export function PropertiesPanel() {
|
|||||||
}
|
}
|
||||||
if (element?.type === "media") {
|
if (element?.type === "media") {
|
||||||
const mediaItem = mediaItems.find(
|
const mediaItem = mediaItems.find(
|
||||||
(item) => item.id === element.mediaId
|
(item) => item.id === element.mediaId,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (mediaItem?.type === "audio") {
|
if (mediaItem?.type === "audio") {
|
||||||
@@ -101,9 +101,11 @@ export function PropertiesPanel() {
|
|||||||
|
|
||||||
function PropertyItem({ label, value }: { label: string; value: string }) {
|
function PropertyItem({ label, value }: { label: string; value: string }) {
|
||||||
return (
|
return (
|
||||||
<div className="flex justify-between">
|
<div className="grid justify-between grid-cols-6">
|
||||||
<Label className="text-xs text-muted-foreground">{label}</Label>
|
<Label className="text-xs text-muted-foreground col-span-2">
|
||||||
<span className="text-xs text-right truncate w-40" title={value}>
|
{label}
|
||||||
|
</Label>
|
||||||
|
<span className="text-xs text-right col-span-4 truncate" title={value}>
|
||||||
{value}
|
{value}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user