Dynamic dashboards: Fix issue where tab content is not visible (#103890)
* only wrap in edit mode * fix icon
This commit is contained in:
+11
-3
@@ -67,12 +67,20 @@ export function TabsLayoutManagerRenderer({ model }: SceneComponentProps<TabsLay
|
||||
</DragDropContext>
|
||||
</TabsBar>
|
||||
|
||||
<div className={conditionalRenderingClass}>
|
||||
{isEditing && (
|
||||
<div className={conditionalRenderingClass}>
|
||||
<TabContent className={styles.tabContentContainer}>
|
||||
{currentTab && <layout.Component model={layout} />}
|
||||
</TabContent>
|
||||
{conditionalRenderingOverlay}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{!isEditing && (
|
||||
<TabContent className={styles.tabContentContainer}>
|
||||
{currentTab && <layout.Component model={layout} />}
|
||||
</TabContent>
|
||||
{isEditing && conditionalRenderingOverlay}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user