From 62f10b9060d69ca93fccabecd689c18a481dada0 Mon Sep 17 00:00:00 2001 From: Wanlu Lei <93822929+alalulu8668@users.noreply.github.com> Date: Fri, 12 Apr 2024 18:23:02 -0700 Subject: [PATCH] add tooltip button to provide embedded documentations. (#385) --- public/chat/index.html | 74 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 65 insertions(+), 9 deletions(-) diff --git a/public/chat/index.html b/public/chat/index.html index 8e5292d0..95555aa4 100644 --- a/public/chat/index.html +++ b/public/chat/index.html @@ -83,7 +83,39 @@ background-color: #ddd; /* or any color you prefer */ } - + + /* Styles for the tooltip button */ + .tooltip .tooltip-inner { + max-width: none; /* Override the default max-width */ + width: 250px; /* Set a specific width for your tooltip */ + text-align: justify; + background-color: #f1eaea; /* Change to your preferred background color */ + color: #333; /* Change to your preferred text color */ + } + + .tooltip .tooltip-arrow::before { + border-left-color: #ffffff; /* Match the tooltip-inner background color */ + /* You will need to set the appropriate border color for each arrow direction if you are using multiple tooltip placements */ + } + + #tooltip-button { + padding: 5px; /* Reduce padding */ + font-size: 12px; /* Reduce font size */ + /* Optionally, if you've set a height and width, you can adjust them too. */ + /* height: 20px; */ + /* width: 20px; */ + color: #cbc4c4; /* Adjust the color as needed */ + border: none; + background: transparent; + } + + #tooltip-button:hover { + color: #555; /* Adjust hover color as needed */ + } + #tooltip-button .fa-question-circle { + /* If the icon itself is too large, reduce its size by targeting the font-awesome icon */ + font-size: 16px; /* Adjust the size of the icon as needed */ + } /* Styles for the message container */ #chat1 .message-container { display: flex; @@ -363,6 +395,17 @@