ag-common 0.0.556 → 0.0.558
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.
|
@@ -21,8 +21,12 @@ const react_1 = __importDefault(require("react"));
|
|
|
21
21
|
const media_1 = require("../../styles/media");
|
|
22
22
|
const Base = styled_1.default.img `
|
|
23
23
|
object-fit: contain;
|
|
24
|
-
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
|
|
25
27
|
min-width: 5rem;
|
|
28
|
+
min-height: 5rem;
|
|
29
|
+
|
|
26
30
|
max-width: 100%;
|
|
27
31
|
|
|
28
32
|
&[data-smalltop='true'] {
|
|
@@ -31,19 +35,18 @@ const Base = styled_1.default.img `
|
|
|
31
35
|
}
|
|
32
36
|
}
|
|
33
37
|
@media ${media_1.smallScreen} {
|
|
34
|
-
width: 90vw;
|
|
38
|
+
max-width: 90vw;
|
|
35
39
|
|
|
36
40
|
&[data-bigonly='true'] {
|
|
37
41
|
display: none;
|
|
38
42
|
}
|
|
39
43
|
&[data-small='true'] {
|
|
40
|
-
width: 50vw;
|
|
44
|
+
max-width: 50vw;
|
|
41
45
|
max-height: 25rem;
|
|
42
46
|
}
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
@media ${media_1.bigScreen} {
|
|
46
|
-
width: 100%;
|
|
47
50
|
max-width: 50rem;
|
|
48
51
|
&[data-smallonly='true'] {
|
|
49
52
|
display: none;
|
|
@@ -86,7 +86,7 @@ const UserImage = ({ image, className, title = 'user image', }) => {
|
|
|
86
86
|
}, []);
|
|
87
87
|
return (react_1.default.createElement(Base, { className: className, title: title, "data-fail": failed },
|
|
88
88
|
UserOutline_1.UserOutline,
|
|
89
|
-
failed !== 1 && (react_1.default.createElement(Img, { alt: "user", src: image, onError: () => setFailed(1) }))));
|
|
89
|
+
failed !== 1 && (react_1.default.createElement(Img, { alt: "user", src: image, onError: () => setFailed(1), onAbort: () => setFailed(1) }))));
|
|
90
90
|
};
|
|
91
91
|
exports.UserImage = UserImage;
|
|
92
92
|
const UserProfileImage = ({ className, user }) => {
|
|
@@ -63,7 +63,7 @@ exports.getClientOrServerReqHref = getClientOrServerReqHref;
|
|
|
63
63
|
const getServerReq = ({ pathname, query, headers, }) => {
|
|
64
64
|
var _a;
|
|
65
65
|
const href = calculateServerHref({
|
|
66
|
-
host: headers.host || '
|
|
66
|
+
host: headers.host || 'testhost',
|
|
67
67
|
pathname,
|
|
68
68
|
});
|
|
69
69
|
const parsedQuery = !query || Object.keys(query).length === 0 ? {} : (0, object_1.castStringlyObject)(query);
|
package/package.json
CHANGED