From c9ccdf76a1fc4c2b9a2cd5815ca5bfa3f10d18a9 Mon Sep 17 00:00:00 2001 From: Umar Farooq Ghumman Date: Fri, 9 Aug 2024 10:34:36 -0500 Subject: [PATCH] QueryProfile Main Page - info button uplift --- project/ui/qprof_main.ipynb | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/project/ui/qprof_main.ipynb b/project/ui/qprof_main.ipynb index 45001a7a..ceae6112 100644 --- a/project/ui/qprof_main.ipynb +++ b/project/ui/qprof_main.ipynb @@ -340,29 +340,19 @@ { "cell_type": "code", "execution_count": null, - "id": "75978929-0dee-4c7c-8199-28a59ca8b185", + "id": "47bc6e71-86ab-404e-9bfa-48599f6c3153", "metadata": {}, "outputs": [], "source": [ - "# Function to create help icons\n", + "import ipywidgets as widgets\n", + "from IPython.display import display\n", "\n", "def create_tooltip(text):\n", - " button = widgets.Button(\n", - " description='?',\n", - " disabled=True,\n", - " button_style='', # 'success', 'info', 'warning', 'danger' or ''\n", - " tooltip=text\n", + " # Create an info icon using HTML\n", + " info_icon = widgets.HTML(\n", + " value=f''\n", " )\n", - " \n", - " # Style the button to look like a question mark icon\n", - " button.layout.width = '30px'\n", - " button.layout.height = '30px'\n", - " # button.style.button_color = '#007bff'\n", - " button.style.font_weight = 'bold'\n", - " # button.style.font_size = '16px'\n", - " # button.style.border_radius = '15px'\n", - " return button\n", - "\n" + " return info_icon" ] }, { @@ -781,7 +771,7 @@ "\n", "\n", "
\n", - " Page version update date: 7/5/2024\n", + " Page version update date: 8/9/2024\n", "
\n", "\n", ""