From 3c840946b1123ee2feeda60a69459dca43a615fd Mon Sep 17 00:00:00 2001 From: Xiangpeng Hao Date: Tue, 31 Dec 2024 10:27:04 -0600 Subject: [PATCH] fine tune ui --- src/query_results.rs | 291 ++++++++++++++++++++++--------------------- 1 file changed, 146 insertions(+), 145 deletions(-) diff --git a/src/query_results.rs b/src/query_results.rs index e0d3a96..9161740 100644 --- a/src/query_results.rs +++ b/src/query_results.rs @@ -154,155 +154,156 @@ pub fn QueryResultView( || () }); let tooltip_classes = "absolute bottom-full left-1/2 transform -translate-x-1/2 px-2 py-1 bg-gray-800 text-white text-xs rounded opacity-0 group-hover:opacity-100 whitespace-nowrap pointer-events-none"; - let base_button_classes = "p-2 text-gray-500 hover:text-gray-700 relative group"; + let base_button_classes = "p-1 text-gray-500 hover:text-gray-700 relative group"; let svg_classes = "h-5 w-5"; view! { -
-
-
-
-
- - {format!("SELECT * FROM view_{}", id)} - - {format!("view_{}", id)} -
- { - view! { - - - + + + + } - > - - "Copy SQL" - - - - - - - } - } + } +
+
-
-
-                        {sql_clone}
-                    
-
- - {move || { show_plan() .then(|| { @@ -316,8 +317,8 @@ pub fn QueryResultView(
- - + + {result .query_result[0] .schema() @@ -325,7 +326,7 @@ pub fn QueryResultView( .iter() .map(|field| { view! { -
+
{field.name().clone()}