@topconsultnpm/sdkui-react-beta 6.14.34 → 6.14.35
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.
|
@@ -496,16 +496,19 @@ const TMBlogs = (props) => {
|
|
|
496
496
|
color: isSelected ? "#fff" : !blogPost.isSys ? TMColors.primary : colors.RED
|
|
497
497
|
}, children: highlightText(blogPost.ownerName ?? '', searchText, isSelected) }), (blogPost?.newPosts ?? 0) > 0 && (_jsx("div", { style: {
|
|
498
498
|
marginLeft: "5px",
|
|
499
|
-
|
|
499
|
+
minWidth: "20px",
|
|
500
500
|
height: "20px",
|
|
501
|
+
padding: "0 6px",
|
|
501
502
|
display: "flex",
|
|
502
503
|
alignItems: "center",
|
|
503
504
|
justifyContent: "center",
|
|
504
|
-
backgroundColor: color,
|
|
505
|
-
color: "
|
|
505
|
+
backgroundColor: isSelected ? '#fff' : color,
|
|
506
|
+
color: isSelected ? color : "#fff",
|
|
506
507
|
boxShadow: "1px 1px 2px #00000020",
|
|
507
508
|
borderRadius: "30px",
|
|
508
509
|
fontWeight: "bold",
|
|
510
|
+
fontSize: "12px",
|
|
511
|
+
whiteSpace: "nowrap",
|
|
509
512
|
}, children: blogPost.newPosts }))] }), _jsxs("div", { style: { fontSize: 'calc(1rem - 1px)', color: isSelected ? "#fff" : !blogPost.isSys ? TMColors.primary : colors.RED }, children: [(showIconHeader && (blogPost.header && blogPost.classID)) && _jsxs("span", { style: { marginLeft: showIconHeader ? "5px" : "0" }, children: [blogPost.ownerName, _jsx("span", { style: { margin: "0 5px" }, children: "\u2501" })] }), blogPost.creationTime
|
|
510
513
|
? highlightText(SDKUI_Localizator.WrittenOn + " " + `${Globalization.getDateTimeDisplayValue(blogPost.creationTime)} ${new Date(blogPost.creationTime).toDateString() === new Date().toDateString() ? "(" + SDKUI_Localizator.Today + ")" : ''}`, searchText, isSelected)
|
|
511
514
|
: '', localShowId && _jsxs("span", { children: [_jsx("span", { style: { margin: "0 5px" }, children: "\u2501" }), _jsxs("span", { children: ["(ID: ", blogPost.id, ")"] })] })] })] }), (blogPost.attachments && showExtendedAttachments === false) &&
|