Skip to content

Fine-tuned styling for the AiGenieChat component

Denys Mishunov requested to merge 407399-limit-code-snippet-height into master

What does this MR do and why?

The MR fine-tunes the styling for the AiGenieChat component. In particular, here's what is changed here:

  • the height of the selected code is limited with max 20rems
  • the font-size of the legal warning is reduced
  • the height of the overall component is limited with 100% and introduced the scroll if the component is higher than one screen

Screenshots or screen recordings

Before After
Screenshot_2023-04-17_at_15.04.19 Screenshot_2023-04-17_at_15.05.17

How to set up and validate locally

  1. Follow the steps to enable "Explain the code" functionality from Integrated the AIGenie component into the blob_... (!116876 - merged)
  2. Go to a non-Gitlab project in your local GDK (for example Flight)
  3. Find a file with a lot of content (/flightjs/Flight/-/blob/master/app/assets/app/assets/javascripts/main.js, for example)
  4. Select the whole file and click the question mark in the drawer to get the content explained
  5. Make sure the copy of the code selected does not make the explanation component unusable

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #407399 (closed)

Merge request reports

Loading