Skip to content

Commit

Permalink
Fix [Features] incorrect panel view when adding a feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan7empest committed Nov 5, 2023
1 parent 6243477 commit 252b2a3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
4 changes: 4 additions & 0 deletions src/components/FeatureStore/featureStore.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
display: flex;
flex-direction: column;
flex-grow: 1;

.table {
overflow-y: auto;
}
}
10 changes: 5 additions & 5 deletions src/components/Table/TableView.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ const TableView = ({
)}
{!pageData.tableHeaders && <tbody className="table-body">{children}</tbody>}
</table>
{isTablePanelOpen && (
<div className="table__panel-container" ref={tablePanelRef}>
<div className="table__panel">{pageData.tablePanel}</div>
</div>
)}
</div>
{!isEmpty(selectedItem) && (
<Details
Expand All @@ -264,11 +269,6 @@ const TableView = ({
tab={tab}
/>
)}
{isTablePanelOpen && (
<div className="table__panel-container" ref={tablePanelRef}>
<div className="table__panel">{pageData.tablePanel}</div>
</div>
)}
</div>
</div>
)
Expand Down
1 change: 0 additions & 1 deletion src/components/Table/table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
right: 0;
z-index: 2;
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
overflow-y: auto;
Expand Down
9 changes: 4 additions & 5 deletions src/elements/FeaturesTablePanel/featuresTablePanel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
width: 100%;
padding: 10px 15px;
background-color: $white;
z-index: 3;
}

.features-panel__divider {
Expand All @@ -81,15 +82,15 @@
height: unset;

.features-panel__expand-title {
margin-left: 40px;
margin-left: 45px;
padding: 15px 0;
font-weight: bold;
font-size: 18px;
}

.features-panel__expand-content {
display: none;
margin: 10px 15px 10px 40px;
margin: 10px 15px 10px 45px;
}

&.open {
Expand All @@ -110,10 +111,8 @@

.features-panel__expand-icon {
position: absolute;
top: 10px;
top: 8px;
left: 0;
width: 30px;
height: 30px;
}
}

Expand Down

0 comments on commit 252b2a3

Please sign in to comment.