mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-06-06 02:31:13 +02:00
fix: wrap spell feed components in container div for proper rendering
Added container divs around SpellHeader + EventFeed in all three viewers. React fragments (<></>) don't create DOM nodes, which was causing layout issues where the EventFeed wasn't rendering properly in the flow. By wrapping SpellHeader and EventFeed in a simple <div>, they now render as a proper sibling block within the TabsContent, allowing the feed to display correctly in the single-scroll layout. Changes: - EventDetailViewer.tsx: Wrap SpellHeader + EventFeed in div - ProfileViewer.tsx: Wrap SpellHeader + EventFeed in div - RelayViewer.tsx: Wrap SpellHeader + EventFeed in div
This commit is contained in:
@@ -189,7 +189,7 @@ function SpellTabContent({
|
||||
needsAccount={false}
|
||||
/>
|
||||
) : (
|
||||
<>
|
||||
<div>
|
||||
<SpellHeader
|
||||
loading={loading}
|
||||
overallState={overallState}
|
||||
@@ -209,7 +209,7 @@ function SpellTabContent({
|
||||
stream={true}
|
||||
enableFreeze={true}
|
||||
/>
|
||||
</>
|
||||
</div>
|
||||
)}
|
||||
</TabsContent>
|
||||
);
|
||||
|
||||
@@ -276,7 +276,7 @@ function SpellTabContent({
|
||||
needsAccount={false}
|
||||
/>
|
||||
) : (
|
||||
<>
|
||||
<div>
|
||||
<SpellHeader
|
||||
loading={loading}
|
||||
overallState={overallState}
|
||||
@@ -296,7 +296,7 @@ function SpellTabContent({
|
||||
stream={true}
|
||||
enableFreeze={true}
|
||||
/>
|
||||
</>
|
||||
</div>
|
||||
)}
|
||||
</TabsContent>
|
||||
);
|
||||
|
||||
@@ -152,7 +152,7 @@ function SpellTabContent({
|
||||
needsAccount={false}
|
||||
/>
|
||||
) : (
|
||||
<>
|
||||
<div>
|
||||
<SpellHeader
|
||||
loading={loading}
|
||||
overallState={overallState}
|
||||
@@ -172,7 +172,7 @@ function SpellTabContent({
|
||||
stream={true}
|
||||
enableFreeze={true}
|
||||
/>
|
||||
</>
|
||||
</div>
|
||||
)}
|
||||
</TabsContent>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user