@doyourjob/gravity-ui-page-constructor 5.31.206 → 5.31.207
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,12 +24,6 @@ unpredictable css rules order in build */
|
|
|
24
24
|
position: absolute;
|
|
25
25
|
inset: 0;
|
|
26
26
|
}
|
|
27
|
-
.pc-feed-partner__background-image {
|
|
28
|
-
display: block;
|
|
29
|
-
width: 100%;
|
|
30
|
-
height: 100%;
|
|
31
|
-
object-fit: cover;
|
|
32
|
-
}
|
|
33
27
|
.pc-feed-partner__head {
|
|
34
28
|
display: flex;
|
|
35
29
|
justify-content: space-between;
|
|
@@ -8,9 +8,10 @@ const utils_1 = require("../../utils");
|
|
|
8
8
|
const b = (0, utils_1.block)('feed-partner');
|
|
9
9
|
const FeedPartner = ({ url, type, level, levelColorText, levelColorBackground, background, image, title, subtitle, className, tags, jumpOnHover, }) => {
|
|
10
10
|
const levelStyles = (0, react_1.useMemo)(() => ({ 'background-color': levelColorBackground, color: levelColorText }), [levelColorBackground, levelColorText]);
|
|
11
|
+
const backgroundStyles = (0, react_1.useMemo)(() => ({ background: background }), [background]);
|
|
11
12
|
return (react_1.default.createElement(components_1.RouterLink, { href: url },
|
|
12
13
|
react_1.default.createElement(uikit_1.Link, { href: url, className: b({ jumpOnHover, border: 'line' }, className) },
|
|
13
|
-
background &&
|
|
14
|
+
background && react_1.default.createElement("div", { className: b('background'), style: backgroundStyles }),
|
|
14
15
|
react_1.default.createElement("div", { className: b('content') },
|
|
15
16
|
react_1.default.createElement("div", { className: b('head') },
|
|
16
17
|
image && react_1.default.createElement(components_1.Image, { className: b('image'), src: image, alt: "logo" }),
|
|
@@ -24,12 +24,6 @@ unpredictable css rules order in build */
|
|
|
24
24
|
position: absolute;
|
|
25
25
|
inset: 0;
|
|
26
26
|
}
|
|
27
|
-
.pc-feed-partner__background-image {
|
|
28
|
-
display: block;
|
|
29
|
-
width: 100%;
|
|
30
|
-
height: 100%;
|
|
31
|
-
object-fit: cover;
|
|
32
|
-
}
|
|
33
27
|
.pc-feed-partner__head {
|
|
34
28
|
display: flex;
|
|
35
29
|
justify-content: space-between;
|
|
@@ -6,9 +6,10 @@ import './FeedPartner.css';
|
|
|
6
6
|
const b = block('feed-partner');
|
|
7
7
|
const FeedPartner = ({ url, type, level, levelColorText, levelColorBackground, background, image, title, subtitle, className, tags, jumpOnHover, }) => {
|
|
8
8
|
const levelStyles = useMemo(() => ({ 'background-color': levelColorBackground, color: levelColorText }), [levelColorBackground, levelColorText]);
|
|
9
|
+
const backgroundStyles = useMemo(() => ({ background: background }), [background]);
|
|
9
10
|
return (React.createElement(RouterLink, { href: url },
|
|
10
11
|
React.createElement(Link, { href: url, className: b({ jumpOnHover, border: 'line' }, className) },
|
|
11
|
-
background &&
|
|
12
|
+
background && React.createElement("div", { className: b('background'), style: backgroundStyles }),
|
|
12
13
|
React.createElement("div", { className: b('content') },
|
|
13
14
|
React.createElement("div", { className: b('head') },
|
|
14
15
|
image && React.createElement(Image, { className: b('image'), src: image, alt: "logo" }),
|