File tree Expand file tree Collapse file tree 2 files changed +58
-21
lines changed
pdl-live-react/src/view/masonry Expand file tree Collapse file tree 2 files changed +58
-21
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ function renderValue({
200200 className = "pdl-masonry-tile-stability-popover"
201201 headerContent = { detailHeader }
202202 bodyContent = {
203- < Stack hasGutter >
203+ < Stack >
204204 < Progress
205205 size = "sm"
206206 variant = {
@@ -211,35 +211,45 @@ function renderValue({
211211 : "success"
212212 }
213213 value = { 100 * v }
214- title = "A/B Match"
214+ title = {
215+ v === 1
216+ ? "Perfect Match!"
217+ : "A/B Comparison of Differences"
218+ }
215219 />
216- < Split hasGutter >
220+ < Split >
217221 < Panel
218222 isScrollable
219223 className = "pdl-masonry-tile-stability-popover-ab-panel"
224+ data-perfect-match = { v === 1 || undefined }
220225 >
221- < PanelHeader >
222- < Title headingLevel = "h4" > A</ Title >
223- </ PanelHeader >
224- < PanelMain maxHeight = "400px" >
226+ { v < 1 && (
227+ < PanelHeader >
228+ < Title headingLevel = "h4" > A</ Title >
229+ </ PanelHeader >
230+ ) }
231+ < PanelMain maxHeight = "300px" >
225232 < PanelMainBody >
226233 < Result result = { detailBody ?. [ i ] } term = "" />
227234 </ PanelMainBody >
228235 </ PanelMain >
229236 </ Panel >
230- < Panel
231- isScrollable
232- className = "pdl-masonry-tile-stability-popover-ab-panel"
233- >
234- < PanelHeader >
235- < Title headingLevel = "h4" > B</ Title >
236- </ PanelHeader >
237- < PanelMain maxHeight = "400px" >
238- < PanelMainBody >
239- < Result result = { detailBody ?. [ j ] } term = "" />
240- </ PanelMainBody >
241- </ PanelMain >
242- </ Panel >
237+ { v < 1 && (
238+ < Panel
239+ isScrollable
240+ variant = "secondary"
241+ className = "pdl-masonry-tile-stability-popover-ab-panel"
242+ >
243+ < PanelHeader >
244+ < Title headingLevel = "h4" > B</ Title >
245+ </ PanelHeader >
246+ < PanelMain maxHeight = "300px" >
247+ < PanelMainBody >
248+ < Result result = { detailBody ?. [ j ] } term = "" />
249+ </ PanelMainBody >
250+ </ PanelMain >
251+ </ Panel >
252+ ) }
243253 </ Split >
244254 </ Stack >
245255 }
Original file line number Diff line number Diff line change 4848}
4949
5050.pdl-masonry-tile-stability-popover-ab-panel {
51- max-width : 300px ;
51+ .pf-v6-c-panel__main-body {
52+ padding-bottom : 0 ;
53+ }
54+ & : not ([data-perfect-match ]) {
55+ max-width : 300px ;
56+ }
57+
58+ & : first-child {
59+ .pf-v6-c-panel__main-body ,
60+ .pf-v6-c-panel__header {
61+ padding-left : 0 ;
62+ }
63+ }
64+ & : last-child {
65+ .pf-v6-c-panel__main-body ,
66+ .pf-v6-c-panel__header {
67+ padding-right : 0 ;
68+ }
69+ }
70+ & [data-perfect-match ] {
71+ .pf-v6-c-panel__main-body {
72+ padding-left : 0 ;
73+ padding-right : 0 ;
74+ }
75+ }
76+ }
77+ .pdl-masonry-tile-stability-popover-ab-panel-mainbody {
78+ margin-left : 0 ;
5279}
You can’t perform that action at this time.
0 commit comments