-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui): improve markdown styles for workflow-row, workflow-templates…
…, cluster-workflow-templates, and cron-workflows (#13930) Signed-off-by: stevenbjohnson <[email protected]>
- Loading branch information
1 parent
b8c54ad
commit 231d548
Showing
22 changed files
with
182 additions
and
48 deletions.
There are no files selected for viewing
Binary file modified
BIN
+7.65 KB
(150%)
docs/assets/title-and-description-markdown-cluster-workflow-template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+12.5 KB
(120%)
docs/assets/title-and-description-markdown-complex-workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+9.03 KB
(160%)
docs/assets/title-and-description-markdown-cron-workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+15.1 KB
(200%)
docs/assets/title-and-description-markdown-workflow-template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,10 @@ | |
color: $argo-color-teal-5; | ||
} | ||
} | ||
|
||
.row { | ||
min-width: 0; | ||
} | ||
} | ||
|
||
.row.pt-60 { | ||
|
13 changes: 10 additions & 3 deletions
13
ui/src/cluster-workflow-templates/cluster-workflow-template-markdown.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
@import 'node_modules/argo-ui/src/styles/config'; | ||
|
||
.wf-rows-name { | ||
line-height: 1.5em; | ||
display: inline-block; | ||
vertical-align: middle; | ||
line-height: 2.5em; | ||
white-space: pre-line; | ||
text-wrap: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
padding: 0.25em 0; | ||
|
||
& > * { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,10 @@ | |
color: $argo-color-teal-5; | ||
} | ||
} | ||
|
||
.row { | ||
min-width: 0; | ||
} | ||
} | ||
|
||
.row.pt-60 { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
@import 'node_modules/argo-ui/src/styles/config'; | ||
|
||
.wf-rows-name { | ||
line-height: 1.5em; | ||
display: inline-block; | ||
vertical-align: middle; | ||
line-height: 2.5em; | ||
white-space: pre-line; | ||
text-wrap: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
padding: 0.25em 0; | ||
|
||
& > * { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import {escapeInvalidMarkdown} from '../../workflows/utils'; | ||
|
||
describe('escapeInvalidMarkdown', () => { | ||
it('escapes markdown', () => { | ||
expect(escapeInvalidMarkdown('**bold**')).toBe('**bold**'); | ||
expect(escapeInvalidMarkdown('_italic_')).toBe('_italic_'); | ||
expect(escapeInvalidMarkdown('~strikethrough~')).toBe('~strikethrough~'); | ||
expect(escapeInvalidMarkdown('`code`')).toBe('`code`'); | ||
expect(escapeInvalidMarkdown('[argo](https://github.com/argoproj/argo-workflows')).toBe('[argo](https://github.com/argoproj/argo-workflows'); | ||
expect(escapeInvalidMarkdown('__underline__')).toBe('__underline__'); | ||
expect(escapeInvalidMarkdown('```code block```')).toBe('code block'); | ||
expect(escapeInvalidMarkdown('> quote')).toBe('quote'); | ||
expect(escapeInvalidMarkdown('# header')).toBe('header'); | ||
expect(escapeInvalidMarkdown('-# subheader')).toBe('subheader'); | ||
expect(escapeInvalidMarkdown('\nthis\nis\ntext\nwith\nline\nbreaks\n')).toBe('this is text with line breaks'); | ||
expect(escapeInvalidMarkdown('- list item\n* list item\n1. list item')).toBe('\\- list item \\* list item 1\\. list item'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,10 @@ | |
color: $argo-color-teal-5; | ||
} | ||
} | ||
|
||
.row { | ||
min-width: 0; | ||
} | ||
} | ||
|
||
.row.pt-60 { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
@import 'node_modules/argo-ui/src/styles/config'; | ||
|
||
.wf-rows-name { | ||
line-height: 1.5em; | ||
display: inline-block; | ||
vertical-align: middle; | ||
line-height: 2.5em; | ||
white-space: pre-line; | ||
text-wrap: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
padding: 0.25em 0; | ||
|
||
& > * { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,10 @@ | |
a:hover { | ||
color: $argo-color-teal-5; | ||
} | ||
|
||
.row { | ||
min-width: 0; | ||
} | ||
} | ||
|
||
&__status { | ||
|
13 changes: 10 additions & 3 deletions
13
ui/src/workflows/components/workflows-row/workflows-row.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
@import 'node_modules/argo-ui/src/styles/config'; | ||
|
||
.wf-rows-name { | ||
line-height: 1.5em; | ||
display: inline-block; | ||
vertical-align: middle; | ||
line-height: 2.5em; | ||
white-space: pre-line; | ||
text-wrap: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
padding: 0.25em 0; | ||
|
||
& > * { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
} |
Oops, something went wrong.