test fix issue

This commit is contained in:
Simon Gardling 2025-12-03 00:39:03 -05:00
parent 4c97cae249
commit adefc5f900
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D
2 changed files with 12 additions and 4 deletions

View File

@ -56,7 +56,14 @@ cfg_if::cfg_if! {
.start( .start(
canvas, canvas,
eframe::WebOptions::default(), eframe::WebOptions::default(),
Box::new(|cc| Ok(Box::new(math_app::MathApp::new(cc)))), Box::new(|cc| {
// Limit tessellation options to prevent runaway allocation
cc.egui_ctx.tessellation_options_mut(|tess_options| {
tess_options.feathering = false;
tess_options.feathering_size_in_pixels = 1.0;
});
Ok(Box::new(math_app::MathApp::new(cc)))
}),
) )
.await .await
} }

View File

@ -56,9 +56,10 @@
margin-left: auto; margin-left: auto;
display: block; display: block;
position: absolute; position: absolute;
top: 0%; top: 0;
left: 50%; left: 0;
transform: translate(-50%, 0%); width: 100%;
height: 100%;
} }
</style> </style>
</head> </head>