Skip to content

Commit 7a3b72f

Browse files
author
Julien MEZIERE
committed
ui: max asset size increased
history.push replaced by history.replace in the HealthItem component useless comment removed in HealthItem component
1 parent 6adc0d1 commit 7a3b72f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ui/src/components/HealthItem.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ const HealthItem = ({
121121
// Right placement to avoid Z index issues between left sidebar and tooltip or out of screen tooltip displays
122122
placement="top"
123123
overlayStyle={{
124-
// em sizing to handle font-size change on large screens
125124
width: '20rem',
126125
height: '100%',
127126
}}
@@ -145,8 +144,8 @@ const HealthItem = ({
145144
>
146145
<div
147146
onClick={() => {
148-
history.push('/alerts');
149147
openLink(alertView);
148+
history.replace('/alerts');
150149
}}
151150
data-testid="alert-link"
152151
>

ui/webpack.common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = (env) => ({
2929
hints: 'error',
3030
// ~732 KiB for production
3131
// ~4.06 MiB for development because flow increase the size of assets.
32-
maxAssetSize: process.env.NODE_ENV === 'production' ? 750000 : 5000000,
32+
maxAssetSize: process.env.NODE_ENV === 'production' ? 750000 : 100000000,
3333
assetFilter: (assetFilename) => {
3434
return (
3535
!assetFilename.endsWith('.map.gz') && assetFilename.endsWith('.gz')

0 commit comments

Comments
 (0)