Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QueryProfile Main Page - info button uplift #287

Merged
merged 1 commit into from
Aug 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 8 additions & 18 deletions project/ui/qprof_main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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'<span style=\"font-size: 25px; color: #007bff; cursor: pointer;\" title=\"{text}\">&#9432;</span>'\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"
]
},
{
Expand Down Expand Up @@ -781,7 +771,7 @@
"</head>\n",
"<body>\n",
" <div class=\"version\">\n",
" Page version update date: 7/5/2024\n",
" Page version update date: 8/9/2024\n",
" </div>\n",
"</body>\n",
"</html>"
Expand Down
Loading