Skip to content

Commit a3f14f9

Browse files
fixed width and height of error and logs overlay (#34)
* fixed width and height of error and logs overlay
1 parent 020755c commit a3f14f9

File tree

7 files changed

+14
-16
lines changed

7 files changed

+14
-16
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v16.16.0

CHANGELOG.MD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 0.14.2
2+
- fixed width and height of error and logs overlay
3+
14
# 0.14.1
25
- fixed stacktrace overlay
36
- fixed multiline and data table displaying

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ or pass `--format @qavajs/html-formatter:report.html` in cli
3131

3232
Kudos to https://github.com/epam/UUI for providing components
3333

34-
## Development
34+
## Development (use nodejs 16)
3535

3636
`npm install`
3737

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": "@qavajs/html-formatter",
3-
"version": "0.14.1",
3+
"version": "0.14.2",
44
"main": "formatter/formatter.js",
55
"scripts": {
66
"report:compile": "node test/compile_report.js",

src/components/ErrorModal.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,20 @@ import {
55
ModalHeader,
66
ModalWindow,
77
FlexRow,
8-
Panel,
9-
ScrollBars
8+
Panel
109
} from '@epam/promo';
1110

1211
export const ErrorModal = (modalProps: any) => {
1312
return <>
1413
<ModalBlocker blockerShadow='dark' {...modalProps}>
15-
<ModalWindow style={{width: '100%', margin: 'auto'}}>
14+
<ModalWindow style={{width: '90vw', margin: 'auto', height: '60vh'}}>
1615
<Panel background="white">
1716
<ModalHeader title="Error" onClose={() => modalProps.success('close')}/>
18-
<ScrollBars hasTopShadow hasBottomShadow>
1917
<FlexRow padding='24'>
20-
<pre style={{width: '100%'}}>
18+
<pre style={{width: '100%', overflow: 'auto'}}>
2119
{modalProps.error}
2220
</pre>
2321
</FlexRow>
24-
</ScrollBars>
2522
<ModalFooter/>
2623
</Panel>
2724
</ModalWindow>

src/components/LogsModal.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,20 @@ import {
55
ModalHeader,
66
ModalWindow,
77
FlexRow,
8-
Panel,
9-
ScrollBars
8+
Panel
109
} from '@epam/promo';
1110

1211
export const LogsModal = (modalProps: any) => {
1312
return <>
1413
<ModalBlocker blockerShadow='dark' {...modalProps}>
15-
<ModalWindow style={{width: '100%', margin: 'auto'}}>
14+
<ModalWindow style={{width: '90vw', margin: 'auto', height: '60vh'}}>
1615
<Panel background="white">
1716
<ModalHeader title="Logs" onClose={() => modalProps.success('close')}/>
18-
<ScrollBars hasTopShadow hasBottomShadow>
1917
<FlexRow padding='24'>
20-
<pre style={{width: '100%'}}>
18+
<pre style={{width: '100%', overflow: 'auto'}}>
2119
{modalProps.logs.map((log: any, index: number) => <div key={index}>{log.data}</div>)}
2220
</pre>
2321
</FlexRow>
24-
</ScrollBars>
2522
<ModalFooter/>
2623
</Panel>
2724
</ModalWindow>

0 commit comments

Comments
 (0)