mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
feat(comments-pane): refactor comments display logic for improved asset and comment pane management
This commit is contained in:
@@ -276,8 +276,13 @@ export const CommentsPane = memo(function CommentsPane({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex-1 overflow-y-auto p-4 space-y-3">
|
<div className="flex-1 overflow-y-auto">
|
||||||
{activePane === 'assets' ? assetsPane : filteredComments.length === 0 ? (
|
<div className={cn(activePane === 'assets' ? 'block p-4' : 'hidden')} aria-hidden={activePane !== 'assets'}>
|
||||||
|
{assetsPane}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className={cn(activePane === 'comments' ? 'block p-4 space-y-3' : 'hidden')} aria-hidden={activePane !== 'comments'}>
|
||||||
|
{filteredComments.length === 0 ? (
|
||||||
<div className="text-center py-8 text-muted-foreground">
|
<div className="text-center py-8 text-muted-foreground">
|
||||||
<MessageSquare className="h-8 w-8 mx-auto mb-2 opacity-50" />
|
<MessageSquare className="h-8 w-8 mx-auto mb-2 opacity-50" />
|
||||||
<p>No comments yet</p>
|
<p>No comments yet</p>
|
||||||
@@ -889,6 +894,7 @@ export const CommentsPane = memo(function CommentsPane({
|
|||||||
})
|
})
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{activePane === 'comments' ? composer : null}
|
{activePane === 'comments' ? composer : null}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user