Merge pull request #457 from itsobi/fix/properties-panel-gets-cut-off-on-smaller-browser-widths

Update PropertyItem component and frame rate dropdown to flex-col so label and value are not on the same line
This commit is contained in:
Maze 2025-07-26 11:24:41 +02:00 committed by GitHub
commit 4f60c0d354
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ export function PropertiesPanel() {
label="Resolution:"
value={`${canvasSize.width} × ${canvasSize.height}`}
/>
<div className="flex justify-between items-center">
<div className="flex flex-col gap-1">
<Label className="text-xs text-muted-foreground">Frame rate:</Label>
<Select
value={(activeProject?.fps || 30).toString()}
@ -101,9 +101,9 @@ export function PropertiesPanel() {
function PropertyItem({ label, value }: { label: string; value: string }) {
return (
<div className="flex justify-between">
<div className="flex flex-col gap-1">
<Label className="text-xs text-muted-foreground">{label}</Label>
<span className="text-xs text-right truncate w-40" title={value}>
<span className="text-xs break-words" title={value}>
{value}
</span>
</div>