Remove scaling old stuff

This commit is contained in:
2026-02-07 22:31:53 +01:00
parent 3f72ba1679
commit 11228e8941

33
ui.R
View File

@@ -20,15 +20,7 @@ ui <- function() {
HTML(" HTML("
body { body {
background-color: #f4f7f9; background-color: #f4f7f9;
/*
width: 1920px;
height: 1000px;
*/
transform-origin: 0 0; transform-origin: 0 0;
/*
overflow: hidden;
position: absolute;
*/
} }
.html-fill-container > .html-fill-item.bslib-mb-spacing { .html-fill-container > .html-fill-item.bslib-mb-spacing {
border-style: none; border-style: none;
@@ -216,31 +208,6 @@ ui <- function() {
) )
) )
), ),
# tags$script(HTML("
# $(document).on('shiny:connected', function() {
# var targetWidth = 1920;
# var targetHeight = 1000;
# function scaleApp() {
# var windowWidth = $(window).width();
# var windowHeight = $(window).height();
#
# // Calculate both ratios
# var widthRatio = windowWidth / targetWidth;
# var heightRatio = windowHeight / targetHeight;
#
# // Use the smaller ratio to ensure the app fits entirely
# var scale = Math.min(widthRatio, heightRatio);
#
# $('body').css({
# 'transform': 'scale(' + scale + ')',
# 'width': targetWidth + 'px',
# 'height': targetHeight + 'px'
# });
# }
# $(window).on('resize', scaleApp);
# scaleApp();
# });"
# )),
navset_card_tab( navset_card_tab(
nav_panel("Karte", nav_panel("Karte",
page_sidebar( page_sidebar(