@topconsultnpm/sdkui-react-beta 6.14.81 → 6.14.82
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.
|
@@ -507,7 +507,7 @@ const TMBlogs = (props) => {
|
|
|
507
507
|
handleFocusedBlog(blogPost);
|
|
508
508
|
handleFocusedAttachment(undefined);
|
|
509
509
|
};
|
|
510
|
-
return (_jsxs(BlogPostContainer, { id: id + "-" + blogPost.id.toString(), ref: containerRef, "$color": textColor, "$textDecoration": blogPost.isDel ? 'line-through' : 'none', "$backgroundColor": bgColor, "$isNew": Boolean(blogPost.newPosts ?? 0) || isNew, "$canNavigate": canNavigate(), "$paddingRight": layoutMode === 'chat' ? "
|
|
510
|
+
return (_jsxs(BlogPostContainer, { id: id + "-" + blogPost.id.toString(), ref: containerRef, "$color": textColor, "$textDecoration": blogPost.isDel ? 'line-through' : 'none', "$backgroundColor": bgColor, "$isNew": Boolean(blogPost.newPosts ?? 0) || isNew, "$canNavigate": canNavigate(), "$paddingRight": layoutMode === 'chat' ? "50px" : "10px", onClick: onClickCallback, onDoubleClick: headerClickCallback, tabIndex: 0, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, onContextMenu: onContextMenu, children: [_jsxs("div", { style: { display: "flex", alignItems: "center" }, children: [OwnerInitialsBadge(blogPost), _jsx("div", { style: { flex: "1 1 auto", minWidth: "0" }, children: _jsxs("div", { style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center', flexWrap: "wrap", overflow: "hidden" }, children: [_jsxs("div", { children: [_jsxs("div", { style: { fontWeight: "bold", fontSize: '1rem', display: "flex", alignItems: "center" }, children: [showIconHeader && blogPost.header && blogPost.classID
|
|
511
511
|
? IconAndHeaderElement(blogPost, iconColor, isSelected, () => {
|
|
512
512
|
if (handleNavigateToWGs && blogPost.id && blogPost.classID === 'WG') {
|
|
513
513
|
handleNavigateToWGs(blogPost.id);
|
|
@@ -545,7 +545,7 @@ const TMBlogs = (props) => {
|
|
|
545
545
|
display: "flex",
|
|
546
546
|
flexDirection: "row",
|
|
547
547
|
alignItems: "flex-start",
|
|
548
|
-
padding: "
|
|
548
|
+
padding: "2px",
|
|
549
549
|
borderRadius: "12px",
|
|
550
550
|
cursor: "default",
|
|
551
551
|
justifyContent: isOwnComment ? "flex-end" : "flex-start",
|
|
@@ -554,9 +554,8 @@ const TMBlogs = (props) => {
|
|
|
554
554
|
flexDirection: "column",
|
|
555
555
|
alignItems: isOwnComment ? "flex-end" : "flex-start",
|
|
556
556
|
textAlign: "left",
|
|
557
|
-
maxWidth: '
|
|
557
|
+
maxWidth: '90%',
|
|
558
558
|
borderRadius: '8px',
|
|
559
|
-
backgroundColor: isOwnComment ? '#D9EFE0' : '#F3E6E6',
|
|
560
559
|
}, children: renderBlogPostContent(blogPost, index, isOwnComment) }) }, 'blogPostChat-' + id + "-" + blogPost.id)] }, "blog-post-wrapper-" + id + "-" + blogPost.id));
|
|
561
560
|
}) }) });
|
|
562
561
|
};
|
|
@@ -625,17 +624,14 @@ const TMBlogs = (props) => {
|
|
|
625
624
|
display: 'flex',
|
|
626
625
|
justifyContent: 'center',
|
|
627
626
|
alignItems: 'center',
|
|
628
|
-
opacity: 0.3,
|
|
629
627
|
}, onMouseEnter: (e) => {
|
|
630
628
|
e.currentTarget.style.backgroundColor = '#D94A9F';
|
|
631
629
|
e.currentTarget.style.transform = 'scale(1.1)';
|
|
632
630
|
e.currentTarget.style.boxShadow = '0 4px 12px rgba(37, 89, 165, 0.6)';
|
|
633
|
-
e.currentTarget.style.opacity = '1';
|
|
634
631
|
}, onMouseLeave: (e) => {
|
|
635
632
|
e.currentTarget.style.backgroundColor = "#C2388B";
|
|
636
633
|
e.currentTarget.style.transform = 'scale(1)';
|
|
637
634
|
e.currentTarget.style.boxShadow = '0 2px 6px rgba(0,0,0,0.2)';
|
|
638
|
-
e.currentTarget.style.opacity = '0.3';
|
|
639
635
|
}, onClick: () => { showCommentFormCallback(); }, children: _jsx(TMTooltip, { content: SDKUI_Localizator.AddNewComment, children: _jsx("i", { className: "dx-icon-chat", style: { fontSize: !isMobile ? '30px' : '25px' } }) }) })] }) });
|
|
640
636
|
};
|
|
641
637
|
export default TMBlogs;
|