Skip to content

Conversation

@dcstang
Copy link
Contributor

@dcstang dcstang commented Nov 12, 2025

Summary

This is a bugfix that lead into minor improvements on responsive layouts for the AnonCAT demo app.

Problem: the output text container was appearing outside of viewport for certain screen sizes

Fix: Retaining mostly the default layout, with UI/UX Changes for tablet and mobile viewports.

Changes

  • Vue grid system syntax fix & CSS fix for overflow and displaying containers outside of viewport
  • Set up responsive design with media queries
  • Reordered buttons for better cohesion with cogstack color theme on mobile (Deidentify and Use Example buttons first, then Redact checkbox below)
  • Reduced padding and gaps throughout mobile layout for more compact design
  • Fixed scrolling issues on viewports <1280px by properly constraining viewport-container height
  • Reduced border sizes on mobile from 15px to 5px for cleaner appearance
  • Reorganised mobile middle container for logo to be a watermark background

Additional bug fix

  • Removed unused import that called defunct variable (deid_text) from views.py

Screenshots

Before (Desktop)

before-anoncat-desktop The output text container is **displayed outside of viewport** and not below fold

After (Desktop)

image

After (Mobile)

image

Test plan

  • Tested mobile view (<768px)
  • Tested tablet view (768-1023px)
  • Verified scrolling works correctly

Additional Notes

All changes are CSS-only for the responsive layouts. No functional changes to the deidentification logic.
Discussion whether to update this to medcat v2 as well? currently on 1.1
At some point to update the currently deployed version that is on internal infra.

Improved the mobile and tablet user experience with a more compact and usable layout.
Fixed - the output text container was appearing outside of viewport for certain screen sizes

UI/UX Changes for tablet and mobile viewports.
Original and default layout remains the same:
- CSS fix for overflow and displaying containers outside of viewport
- Set up responsive design with media queries
- Reordered buttons for better cohesion with cogstack color theme: Deidentify and Use Example buttons first, then Redact checkbox below
- Reduced padding and gaps throughout mobile layout for more compact design
- Fixed scrolling issues on viewports <1280px by properly constraining viewport-container height
- Reduced border sizes on mobile from 15px to 5px for cleaner appearance
- Reorganised mobile middle container for logo to be a watermark background

Bug fix
- Removed unused import that called defunct variable (deid_text) from views.py
Copy link
Member

@tomolopolis tomolopolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@mart-r mart-r merged commit 12d60ad into CogStack:main Nov 17, 2025
6 checks passed
mart-r added a commit that referenced this pull request Nov 18, 2025
The deid_text method in medcat.utils.ner was deprecated in favour of using the  instead. However, the change in #223 removed the import (probably because otherwise it failed due to an import error) without replacing it with the new alteranative. This PR fixes that.
mart-r added a commit that referenced this pull request Nov 18, 2025
The deid_text method in medcat.utils.ner was deprecated in favour of using the  instead. However, the change in #223 removed the import (probably because otherwise it failed due to an import error) without replacing it with the new alteranative. This PR fixes that.
@dcstang dcstang deleted the feat/mobile-responsive-improvements branch November 19, 2025 20:11
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.

3 participants