diff --git a/app/src/main/java/io/xpipe/app/fxcomps/impl/SvgView.java b/app/src/main/java/io/xpipe/app/fxcomps/impl/SvgView.java index d7fc93ad5..d2c9bade8 100644 --- a/app/src/main/java/io/xpipe/app/fxcomps/impl/SvgView.java +++ b/app/src/main/java/io/xpipe/app/fxcomps/impl/SvgView.java @@ -71,6 +71,7 @@ public class SvgView { return null; } + wv.getStyleClass().add("svg-comp"); wv.getEngine() .setUserDataDirectory( AppProperties.get().getDataDir().resolve("webview").toFile()); @@ -126,7 +127,6 @@ public class SvgView { public Optional createWebview() { var wv = createWebView(); - wv.getStyleClass().add("svg-comp"); return Optional.ofNullable(wv); }