jared-yu-hcltech / custom-genai-chatbot

0 stars 0 forks source link

Update the UI #4

Open jared-yu-hcltech opened 2 months ago

jared-yu-hcltech commented 2 months ago

To do:

jared-yu-hcltech commented 2 months ago

It could be good to test out replacing the LAMA AI gifs/images/styles with something more similar to HCL. That way we can track the assets and which CSS styles to edit to change the look of the app.

jared-yu-hcltech commented 2 months ago

Can use this tutorial for this purpose: https://www.youtube.com/watch?v=qwM23_kF4v4&t=190s

jared-yu-hcltech commented 2 months ago

Moved to top post

jared-yu-hcltech commented 2 months ago

Tried a trick from https://www.youtube.com/shorts/mg49F9qUs38, but it doesn't fix the scrollbar shifting issue completely.

  overflow: auto;
  scrollbar-gutter: stable;

This helps to move content to the left by default, but for some reason the chat box is also squished from the right in the DashboardPage.

Edit: Was able to combine this with position: sticky and width: 100% to get it to work in a17b2f9.

Edit 2: Not complete fixed yet.

Edit 3: Used the following to fix the width issue combined with position: fixed

width: calc(100% - 0.65 * (100vw - 50px));

seen in bc7fb3d

jared-yu-hcltech commented 1 month ago

Reference for syntax highlighting: https://medium.com/@lobocroidy/creating-a-code-block-with-syntax-highlighting-and-copy-button-using-react-and-typescript-c69be2061d73