Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix(playground): add direct CSS rules for TrajectoryViewer layout (#1066)

Sarina Lic9e85fdddc94
diff --git a/libs/typescript/playground/src/styles.css b/libs/typescript/playground/src/styles.css
index efa8f09ca0..b9a0ea48d8 100644
--- a/libs/typescript/playground/src/styles.css
+++ b/libs/typescript/playground/src/styles.css
@@ -1,8 +1,29 @@
-@import 'tailwindcss';
-
/* Standalone dark mode - works with both class and media query */
@custom-variant dark (&:where(.dark, .dark *));
+/* Critical TrajectoryViewer layout styles - applied directly so they work regardless of consumer's Tailwind config */
+@media (min-width: 1024px) {
+ /* Main container padding and gap */
+ #trajectory-container {
+ padding: 0.75rem !important;
+ gap: 0.75rem !important;
+ }
+
+ /* 75/25 split between display and sidebar */
+ #trajectory-container > .order-1 {
+ width: 75% !important;
+ }
+
+ #trajectory-container > .order-2 {
+ width: 25% !important;
+ }
+
+ /* Sidebar padding */
+ #trajectory-container .overflow-y-auto {
+ padding: 0.75rem !important;
+ }
+}
+
@theme {
/* Custom theme colors */
--color-secondary-50: oklch(0.97 0.014 254.604);