@social-mail/social-mail-client 1.2.736 → 1.2.737
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.
- package/dist/public/channel/BlogImageService.js +1 -1
- package/dist/public/channel/ChannelView.d.ts +1 -1
- package/dist/public/channel/ChannelView.d.ts.map +1 -1
- package/dist/public/channel/ChannelView.js +10 -2
- package/dist/public/channel/ChannelView.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.js +39 -29
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +28 -26
- package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
- package/dist/public/channel/PostSummary.d.ts.map +1 -1
- package/dist/public/channel/PostSummary.js +28 -26
- package/dist/public/channel/PostSummary.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/public/channel/BlogImageService.ts +1 -1
- package/src/public/channel/ChannelView.tsx +10 -1
- package/src/public/channel/PostSummary.tsx +34 -24
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ export default class BlogImageService {
|
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
if (file) {
|
|
33
|
-
return CDN.toCDNUrl(apiPath(`/social-mail/c/d/${location.hostname}/webp(
|
|
33
|
+
return CDN.toCDNUrl(apiPath(`/social-mail/c/d/${location.hostname}/webp(700)/${file.postID}/${file.appFileID}/${file.name}/${file.name}.700.webp`));
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
return orangeLogo;
|
|
@@ -26,6 +26,15 @@ import ChannelCalendarView from "./ChannelCalendarView";
|
|
|
26
26
|
import { Mailto } from "../../common/Mailto";
|
|
27
27
|
import CalendarLink from "./controls/CalendarLink";
|
|
28
28
|
import UpcomingEvents from "./controls/UpcomingEvents";
|
|
29
|
+
import { AppLocation } from "../../common/TestMode";
|
|
30
|
+
import WebApp from "@web-atoms/core/dist/web/WebApp";
|
|
31
|
+
|
|
32
|
+
if(AppLocation.isLocalTesting) {
|
|
33
|
+
|
|
34
|
+
WebApp.installStyleSheet("/styles/styler.css");
|
|
35
|
+
WebApp.installStyleSheet("/styles/vars.css");
|
|
36
|
+
}
|
|
37
|
+
|
|
29
38
|
|
|
30
39
|
const { channel, emailID, tag, author, calendar } = UrlService.getParameters();
|
|
31
40
|
|
|
@@ -91,7 +100,7 @@ export default class ChannelMessage extends AtomControl {
|
|
|
91
100
|
</section>;
|
|
92
101
|
}
|
|
93
102
|
|
|
94
|
-
|
|
103
|
+
renderBody() {
|
|
95
104
|
|
|
96
105
|
if (calendar) {
|
|
97
106
|
return <ChannelCalendarView channel={this.channel}/>;
|
|
@@ -28,10 +28,12 @@ declare global {
|
|
|
28
28
|
grid-template-columns: 1fr 2fr auto;
|
|
29
29
|
grid-template-rows: auto auto 1fr auto;
|
|
30
30
|
|
|
31
|
+
padding-bottom: 10px;
|
|
32
|
+
|
|
31
33
|
border-bottom: solid 1px lightgray;
|
|
32
34
|
|
|
33
|
-
max-height:
|
|
34
|
-
height:
|
|
35
|
+
max-height: 285px;
|
|
36
|
+
height: 285px;
|
|
35
37
|
|
|
36
38
|
overflow: hidden;
|
|
37
39
|
|
|
@@ -39,15 +41,15 @@ declare global {
|
|
|
39
41
|
|
|
40
42
|
gap: 10px;
|
|
41
43
|
|
|
42
|
-
|
|
44
|
+
row-gap: 20px;
|
|
43
45
|
|
|
44
46
|
& > [data-element=preview] {
|
|
45
47
|
grid-row: 1 / span 4;
|
|
46
48
|
grid-column: 1;
|
|
47
|
-
background-color:
|
|
49
|
+
background-color: #343a400d;
|
|
48
50
|
object-fit: contain;
|
|
49
|
-
width:
|
|
50
|
-
height:
|
|
51
|
+
width: 275px;
|
|
52
|
+
height: 275px;
|
|
51
53
|
border: none;
|
|
52
54
|
outline: none;
|
|
53
55
|
text-decoration: none;
|
|
@@ -94,39 +96,39 @@ declare global {
|
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
& > [data-element=title] {
|
|
97
|
-
grid-row:
|
|
98
|
-
grid-column: 2;
|
|
99
|
+
grid-row: 2;
|
|
100
|
+
grid-column: 2 / span 2;
|
|
101
|
+
font-size: 1.5em;
|
|
102
|
+
line-height: 1.2;
|
|
103
|
+
text-decoration: none;
|
|
99
104
|
margin: 0;
|
|
105
|
+
& a {
|
|
106
|
+
text-decoration: none;
|
|
107
|
+
}
|
|
100
108
|
}
|
|
101
109
|
|
|
102
110
|
& > [data-element=date] {
|
|
103
|
-
grid-row:
|
|
111
|
+
grid-row: 1;
|
|
104
112
|
grid-column: 3;
|
|
113
|
+
font-size: 0.70rem;
|
|
114
|
+
line-height: 1;
|
|
115
|
+
letter-spacing:0.05rem;
|
|
105
116
|
margin: 0;
|
|
106
117
|
}
|
|
107
118
|
|
|
108
119
|
& > [data-element=author] {
|
|
109
|
-
grid-row:
|
|
120
|
+
grid-row: 1;
|
|
110
121
|
grid-column: 2;
|
|
122
|
+
font-size: 0.70rem;
|
|
123
|
+
line-height: 1;
|
|
124
|
+
letter-spacing:0.05rem;
|
|
111
125
|
margin: 0;
|
|
112
126
|
}
|
|
113
127
|
|
|
114
128
|
& > section {
|
|
115
129
|
grid-row: 3;
|
|
116
|
-
grid-column: 2;
|
|
130
|
+
grid-column: 2 / span 2;
|
|
117
131
|
position: relative;
|
|
118
|
-
max-height: 60px;
|
|
119
|
-
overflow: hidden;
|
|
120
|
-
&::after {
|
|
121
|
-
position: absolute;
|
|
122
|
-
left: 0;
|
|
123
|
-
right: 0;
|
|
124
|
-
top: 0;
|
|
125
|
-
bottom: 0;
|
|
126
|
-
content: "";
|
|
127
|
-
pointer-events: none;
|
|
128
|
-
background: linear-gradient(to top, rgba(255, 255, 255, 1) 1px, rgba(255, 255, 255, 0) 16px);
|
|
129
|
-
}
|
|
130
132
|
}
|
|
131
133
|
|
|
132
134
|
& > footer {
|
|
@@ -177,7 +179,15 @@ export default function PostSummary ({
|
|
|
177
179
|
<h6 data-element="date" href={href} text={DateFormats.relative.short(email.dateSent)}/>
|
|
178
180
|
{!isComment && <h5 href={href} data-element="author" text={email.senderName}/> }
|
|
179
181
|
<section>
|
|
180
|
-
<section
|
|
182
|
+
<section>
|
|
183
|
+
{email.textBody.substring(0, 110).trim()}
|
|
184
|
+
{"\xa0"}
|
|
185
|
+
<a href={href}>
|
|
186
|
+
Read More ...
|
|
187
|
+
{/* <span lang="en">Read More...</span> */}
|
|
188
|
+
{/* <span lang="hi">अधिक जानें...</span> */}
|
|
189
|
+
</a>
|
|
190
|
+
</section>
|
|
181
191
|
</section>
|
|
182
192
|
<footer>
|
|
183
193
|
{ ... engagements.map((x: IEmailEngagement) =>
|