Skip to content

Commit 913f8b6

Browse files
fix (design library): better looking pro notice
1 parent 00e4102 commit 913f8b6

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/components/design-library-list/design-library-list-item.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ const DesignLibraryListItem = forwardRef( ( props, ref ) => {
287287
} }
288288
>
289289
{ ! isPro && plan !== 'free' && <span className="stk-pulsating-circle" role="presentation" /> }
290-
<div style={ { position: 'relative' } } className={ `${ getDesignPreviewSize() > 200 ? 'stk--design-preview-large' : '' }` }>
290+
<div style={ { position: 'relative' } } className={ `${ getDesignPreviewSize() > 100 ? 'stk--design-preview-large' : 'stk--design-preview-small' }` }>
291291
{ ! isPro && plan !== 'free' && (
292292
<ProControl
293293
type="design-library"

src/components/design-library-list/editor.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,18 @@
8686
display: flex;
8787
flex-direction: column;
8888
align-content: center;
89+
min-height: 99px; // Quick fix to make the pro note visible for small preview designs.
8990

9091
h4 {
9192
font-size: 12px !important;
92-
margin-bottom: -6px !important;
9393
}
9494

9595
.ugb-design-control-pro-note__description {
9696
grid-row: 1/3;
9797
grid-column: 2/3;
9898
margin-bottom: 0 !important;
9999
font-size: 11px !important;
100+
margin-top: -6px !important;
100101
}
101102
a.button {
102103
font-size: 11px !important;
@@ -168,6 +169,16 @@
168169
z-index: 9;
169170
}
170171
}
172+
173+
.stk--design-preview-small {
174+
.ugb-design-control-pro-note {
175+
flex-direction: row !important;
176+
}
177+
.ugb-design-control-pro-note__description {
178+
display: none;
179+
}
180+
}
181+
171182
// .ugb-design-library-item__image {
172183
// width: 100% !important;
173184
// margin: 0 !important;

0 commit comments

Comments
 (0)