Skip to content

Commit 945a8fc

Browse files
authored
Social: Fix connections layout issues (#99417)
* Only show examples for not connected services * Add back missing css * Fix in JP cloud
1 parent d961201 commit 945a8fc

File tree

2 files changed

+35
-8
lines changed

2 files changed

+35
-8
lines changed

client/sites/marketing/connections/service-examples.scss

+26
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,29 @@
5555
.connections__sharing-service-tip {
5656
margin: 1rem 0;
5757
}
58+
59+
.sharing-service-examples {
60+
display: grid;
61+
grid-auto-columns: minmax(0, 1fr);
62+
grid-auto-flow: column;
63+
margin-top: 0.4rem;
64+
65+
@media (max-width: 660px) {
66+
grid-auto-flow: row;
67+
grid-gap: 2rem;
68+
height: auto;
69+
min-height: unset;
70+
}
71+
72+
img {
73+
max-height: 520px;
74+
max-width: 100%;
75+
}
76+
77+
>div {
78+
&:has(img) {
79+
margin-inline-start: auto;
80+
margin-inline-end: auto;
81+
}
82+
}
83+
}

client/sites/marketing/connections/service.jsx

+9-8
Original file line numberDiff line numberDiff line change
@@ -666,14 +666,15 @@ export class SharingService extends Component {
666666
'is-placeholder': this.props.isFetching,
667667
} ) }
668668
>
669-
<ServiceExamples
670-
service={ this.props.service }
671-
action={ this.performAction }
672-
connectAnother={ this.connectAnother }
673-
isConnecting={ this.state.isConnecting }
674-
connections={ connections }
675-
/>
676-
669+
{ 'not-connected' === connectionStatus && (
670+
<ServiceExamples
671+
service={ this.props.service }
672+
action={ this.performAction }
673+
connectAnother={ this.connectAnother }
674+
isConnecting={ this.state.isConnecting }
675+
connections={ connections }
676+
/>
677+
) }
677678
{ this.isGooglePhotosMigration( connectionStatus ) && <GooglePhotosMigration /> }
678679

679680
{ ! this.isMailchimpService( connectionStatus ) && (

0 commit comments

Comments
 (0)