Skip to content

Comments

Fix OpenCRE Chat UI layout issues (#625)#745

Open
Mahaboobunnisa123 wants to merge 1 commit intoOWASP:mainfrom
Mahaboobunnisa123:fix/chatbot-ui-improvements
Open

Fix OpenCRE Chat UI layout issues (#625)#745
Mahaboobunnisa123 wants to merge 1 commit intoOWASP:mainfrom
Mahaboobunnisa123:fix/chatbot-ui-improvements

Conversation

@Mahaboobunnisa123
Copy link

@Mahaboobunnisa123 Mahaboobunnisa123 commented Feb 15, 2026

Fixes #625 — Improves the UI of the OpenCRE Chat page by addressing three layout issues.

I have made the following changes

1. Fix chatbot response display (CSS syntax error)

  • File: application/frontend/src/pages/chatbot/chatbot.scss (line 121)
  • Bug: line-height: 1.6 consideration; — the word consideration is an invalid CSS value, causing the browser to silently ignore the entire line-height property
  • Fix: Changed to line-height: 1.6;

2. Add top margin to loading spinner (typing indicator)

  • File: application/frontend/src/pages/chatbot/chatbot.scss
  • Bug: The typing indicator dots had no vertical spacing from messages above
  • Fix: Added margin-top: 0.5rem to .typing-indicator

3. Add spacing between heading and navbar

  • File: application/frontend/src/pages/chatbot/chatbot.scss
  • Bug: The page title "OWASP OpenCRE Chat" was visually touching/too close to the sticky navbar
  • Fix: Increased margin-top on .chatbot-title from 2rem3rem and added padding-top: 1rem to .chatbot-layout

Testing

Verified chatbot responses display with proper line height, loading spinner has visible top margin, heading has proper spacing below the navbar, and responsive layout on mobile (< 768px) and tablets (< 1024px)

Screenshot

chatbot

I noticed this issue has had no progress, so I've investigated and found the root causes:
A CSS syntax error (line-height: 1.6 consideration) causing improper response display, missing margin-top on the typing indicator, insufficient spacing between the title and navbar. I've opened a PR with fixes. Happy to make any changes based on your review. Thank you!

- Fix invalid CSS 'line-height: 1.6 consideration' to 'line-height: 1.6'
- Add margin-top to typing indicator for loading spinner spacing
- Increase chatbot title margin-top and layout padding-top to
  prevent heading from touching the navbar

Signed-off-by: Mahaboobunnisa123 <mdshabbi885@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improvement in the UI of OpenCRE Chat

1 participant