FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(topology): Set topology container to take full height of the view by jeff-phillips-18 · Pull Request #3314 · patternfly/patternfly-react · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .css  (1) .snap  (1) .tsx  (1) All 3 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
      • topology-view.css
      • TopologyView.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@
align-items: center;
width: 100%;
height: 100%;
}
}

.pf-topology-container {
flex: 1;
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export const TopologyView: React.FunctionComponent<TopologyViewProps> = ({
...props
}: TopologyViewProps) => {
const containerClasses =
`${sideBar ? 'pf-topology-container__with-sidebar' : ''}` +
'pf-topology-container' +
`${sideBar ? ' pf-topology-container__with-sidebar' : ''}` +
`${sideBarOpen ? ' pf-topology-container__with-sidebar--open' : ''}`;

return (
Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ exports[`TopologyView should display an empty topology correctly 1`] = `
id="simple-test-id"
>
<StackItem
className=""
className="pf-topology-container"
isFilled={true}
>
<div
className="pf-l-stack__item pf-m-fill"
className="pf-l-stack__item pf-m-fill pf-topology-container"
>
<div
className="pf-topology-content"
Expand Down Expand Up @@ -81,11 +81,11 @@ exports[`TopologyView should display topology correctly 1`] = `
</div>
</StackItem>
<StackItem
className=""
className="pf-topology-container"
isFilled={true}
>
<div
className="pf-l-stack__item pf-m-fill"
className="pf-l-stack__item pf-m-fill pf-topology-container"
>
<div
className="pf-topology-content"
Expand Down Expand Up @@ -165,11 +165,11 @@ exports[`TopologyView should display topology sidebar correctly 1`] = `
</div>
</StackItem>
<StackItem
className="pf-topology-container__with-sidebar"
className="pf-topology-container pf-topology-container__with-sidebar"
isFilled={true}
>
<div
className="pf-l-stack__item pf-m-fill pf-topology-container__with-sidebar"
className="pf-l-stack__item pf-m-fill pf-topology-container pf-topology-container__with-sidebar"
>
<div
className="pf-topology-content"
Expand Down Expand Up @@ -252,11 +252,11 @@ exports[`TopologyView should display topology w/ open sidebar correctly 1`] = `
</div>
</StackItem>
<StackItem
className="pf-topology-container__with-sidebar pf-topology-container__with-sidebar--open"
className="pf-topology-container pf-topology-container__with-sidebar pf-topology-container__with-sidebar--open"
isFilled={true}
>
<div
className="pf-l-stack__item pf-m-fill pf-topology-container__with-sidebar pf-topology-container__with-sidebar--open"
className="pf-l-stack__item pf-m-fill pf-topology-container pf-topology-container__with-sidebar pf-topology-container__with-sidebar--open"
>
<div
className="pf-topology-content"
Expand Down

Back | FazBrowse Home | New Git URL