Set max-width for images in desktop for Grafana

This commit is contained in:
Peter Hedenskog 2025-10-13 07:22:29 +02:00
parent eb39540c6d
commit 9d33998486
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,9 @@ export function getAnnotationMessage(
usingBrowsertime, usingBrowsertime,
options 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'; const resultPageUrl = absolutePagePath + 'index.html';
let screenshotPath; let screenshotPath;
if (screenShotsEnabledInBrowsertime) { if (screenShotsEnabledInBrowsertime) {