From f418d6c88d7b0c52d6f07e7192a087231e95d297 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Tue, 9 Apr 2024 11:43:14 +0300 Subject: [PATCH] Work on web-fc-solve-ui integration. Disable/hide the animated/graphic solution display if the game-variant rules do not match 8cols+4reserves freecell --- fc-solve/site/wml/lib/sass/jqui-override.scss | 13 +++++++++++++ .../site/wml/src/js-fc-solve/text/index.html.tt2 | 10 ++++++++-- fc-solve/site/wml/src/ts/web-fc-solve-ui.ts | 16 ++++++++++------ 3 files changed, 31 insertions(+), 8 deletions(-) diff --git a/fc-solve/site/wml/lib/sass/jqui-override.scss b/fc-solve/site/wml/lib/sass/jqui-override.scss index a2375932d..aae14892f 100644 --- a/fc-solve/site/wml/lib/sass/jqui-override.scss +++ b/fc-solve/site/wml/lib/sass/jqui-override.scss @@ -38,4 +38,17 @@ text-decoration-line: line-through; } } + #output_tabs__animated { + .enabled_wrapper { + display: none; + } + } +} + +#output_tabs.enable_animated_output { + #output_tabs__animated { + .disabled_wrapper { + display: none; + } + } } diff --git a/fc-solve/site/wml/src/js-fc-solve/text/index.html.tt2 b/fc-solve/site/wml/src/js-fc-solve/text/index.html.tt2 index bcd2845e5..369a2159b 100644 --- a/fc-solve/site/wml/src/js-fc-solve/text/index.html.tt2 +++ b/fc-solve/site/wml/src/js-fc-solve/text/index.html.tt2 @@ -143,19 +143,23 @@ Input a card patience/solitaire layout in the Output: -
+