Set max-width for images in desktop for Grafana (#4553)

This commit is contained in:
Peter Hedenskog 2025-10-13 07:41:31 +02:00 committed by GitHub
parent eb39540c6d
commit b1566ba3ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,9 @@ export function getAnnotationMessage(
usingBrowsertime,
options
) {
const screenshotSize = options.mobile ? 'height=200px' : 'width=100%';
const screenshotSize = options.mobile
? 'height=200px'
: 'style="max-width:400px;height:auto;"';
const resultPageUrl = absolutePagePath + 'index.html';
let screenshotPath;
if (screenShotsEnabledInBrowsertime) {