Skip to content

Commit 56be724

Browse files
Update Markdown styles (#1438)
* Decrease fonts, allow deleting the incidents in Error state
1 parent 385d1a5 commit 56be724

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "digma-ui",
3-
"version": "16.6.2",
3+
"version": "16.6.1",
44
"description": "Digma UI",
55
"scripts": {
66
"lint:eslint": "eslint --cache .",

src/components/Agentic/IncidentDetails/IncidentMetaData/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export const IncidentMetaData = () => {
206206
onClick={handleCloseButtonClick}
207207
/>
208208
)}
209-
{["closed", "canceled"].includes(data.status) && (
209+
{["error", "closed", "canceled"].includes(data.status) && (
210210
<s.CloseIncidentButton
211211
label={"Delete incident"}
212212
onClick={handleDeleteButtonClick}

src/components/Agentic/common/AgentEventsList/AgentEvent/TypingMarkdown/MarkdownRenderer/styles.ts

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const StyledCodeSnippet = styled(CodeSnippet)`
2424
export const Paragraph = styled.p`
2525
${subheading1RegularTypography}
2626
color: ${({ theme }) => theme.colors.v3.text.secondary};
27+
margin: 4px 0;
2728
`;
2829

2930
export const Code = styled.code`
@@ -34,41 +35,49 @@ export const Code = styled.code`
3435
`;
3536

3637
export const Heading1 = styled.h1`
37-
font-size: 38px;
38+
font-size: 30px;
3839
color: ${({ theme }) => theme.colors.v3.text.secondary};
40+
margin: 4px 0;
3941
`;
4042

4143
export const Heading2 = styled.h2`
42-
font-size: 34px;
44+
font-size: 26px;
4345
color: ${({ theme }) => theme.colors.v3.text.secondary};
46+
margin: 4px 0;
4447
`;
4548

4649
export const Heading3 = styled.h3`
47-
font-size: 30px;
50+
font-size: 22px;
4851
color: ${({ theme }) => theme.colors.v3.text.secondary};
52+
margin: 4px 0;
4953
`;
5054

5155
export const Heading4 = styled.h4`
52-
font-size: 26px;
56+
font-size: 22px;
5357
color: ${({ theme }) => theme.colors.v3.text.secondary};
58+
margin: 4px 0;
5459
`;
5560

5661
export const Heading5 = styled.h5`
5762
font-size: 22px;
5863
color: ${({ theme }) => theme.colors.v3.text.secondary};
64+
margin: 4px 0;
5965
`;
6066

6167
export const Heading6 = styled.h6`
62-
font-size: ${({ theme }) => theme.typographies.subheading1.fontSize}px;
68+
font-size: 22px;
6369
color: ${({ theme }) => theme.colors.v3.text.secondary};
70+
margin: 4px 0;
6471
`;
6572

6673
export const UnorderedList = styled.ul`
6774
${textStyles}
75+
margin: 4px 0;
6876
`;
6977

7078
export const OrderedList = styled.ol`
7179
${textStyles}
80+
margin: 4px 0;
7281
`;
7382

7483
export const ListItem = styled.li`
@@ -77,6 +86,8 @@ export const ListItem = styled.li`
7786

7887
export const Blockquote = styled.blockquote`
7988
${textStyles}
89+
margin-top: 4px;
90+
margin-bottom: 4px;
8091
`;
8192

8293
export const Strong = styled.strong`

0 commit comments

Comments
 (0)