Skip to content

Tweaks for small screens and forms#1138

Merged
annavik merged 5 commits intomainfrom
fix/small-screen-tweaks
Feb 18, 2026
Merged

Tweaks for small screens and forms#1138
annavik merged 5 commits intomainfrom
fix/small-screen-tweaks

Conversation

@annavik
Copy link
Member

@annavik annavik commented Feb 18, 2026

Summary

Comment from @mihow:

Anna Viklund did the responsive styles change recently? I am not able to see or click Save on job modal. But the enter key works! Except it allowed me to create a few duplicate jobs (enter submitted but did not clear the form or close the modal)

The problem was related to the pagination bar covering the button. In this PR we adress this. Also we take care of related tweaks.

List of Changes

  • Bump dialog z-index to avoid being covered by pagination bars
  • Tweak page header layout for small screens
  • Disable save buttons during loading and after success
  • Disable delete buttons during loading and after success

Screenshots

Pagination bar no longer covering dialog (before vs. after):
Screenshot 2026-02-18 at 17 37 24
Screenshot 2026-02-18 at 17 36 37

Page header no longer cutting of controls (before vs. after):
Screenshot 2026-02-18 at 17 37 16
Screenshot 2026-02-18 at 17 36 28

Summary by CodeRabbit

Release Notes

  • Style

    • Improved dialog z-index layering for proper stacking order
    • Enhanced page header responsiveness on small screens with vertical layout and adjusted spacing
    • Updated sort control trigger width styling
  • UI Changes

    • Delete and Save buttons now disabled during loading and success states

@netlify
Copy link

netlify bot commented Feb 18, 2026

Deploy Preview for antenna-preview ready!

Name Link
🔨 Latest commit 1789662
🔍 Latest deploy log https://app.netlify.com/projects/antenna-preview/deploys/6995eb8461b54f0008caafc5
😎 Deploy Preview https://deploy-preview-1138--antenna-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 72 (🟢 up 6 from production)
Accessibility: 89 (🟢 up 9 from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 100 (🟢 up 8 from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Feb 18, 2026

Deploy Preview for antenna-ssec ready!

Name Link
🔨 Latest commit 1789662
🔍 Latest deploy log https://app.netlify.com/projects/antenna-ssec/deploys/6995eb84230cee0007659a91
😎 Deploy Preview https://deploy-preview-1138--antenna-ssec.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 18, 2026

📝 Walkthrough

Walkthrough

These changes update button disable logic across form components to consider loading states, increase dialog z-index for proper stacking, add responsive layout adjustments to page headers for small screens, and modify sort control width styling.

Changes

Cohort / File(s) Summary
Button Disable Logic
ui/src/components/form/delete-form/delete-form.tsx, ui/src/design-system/components/button/save-button.tsx
Both components now disable buttons when either isLoading or isSuccess is true, preventing user interaction during loading and after successful completion.
Dialog Stacking
ui/src/design-system/components/dialog/dialog.module.scss
Increased z-index from 3 to 50 for dialog overlay and container to ensure proper layering above other page elements.
Page Header Responsive Layout
ui/src/design-system/components/page-header/page-header.module.scss, ui/src/design-system/components/page-header/page-header.tsx
Added responsive styling for small screens with vertical flex layout and new .actions class styling. Component wrapper now applies the additional styles.actions class to children for proper layout stacking.
Sort Control Styling
ui/src/design-system/components/sort-control.tsx
Applied classNames utility to add w-auto width class to the trigger button alongside existing size and variant styling.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • Role Management API and UI #801: Modifies the same button components (DeleteForm and SaveButton) with overlapping changes to disable logic and styling updates.

Poem

🐰 With buttons now wary of loading's long wait,
And dialogs stacked high to avoid their sad fate,
Small screens dance vertically, graceful and neat,
While sorts stretch their width—what a code-hoppy treat! 🌿✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately reflects the main changes: responsive design tweaks for small screens and form button state improvements.
Description check ✅ Passed The description includes summary, list of changes, and screenshots, but is missing detailed description, testing instructions, and deployment notes sections from the template.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/small-screen-tweaks

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
ui/src/design-system/components/sort-control.tsx (1)

1-1: Consider using a Tailwind-merge utility instead of plain classNames for resolving conflicting utilities from buttonVariants.

classNames concatenates strings without resolving conflicting Tailwind utilities. If buttonVariants({ size: 'small', variant: 'outline' }) emits any w-* class, the w-auto may fail to override it depending on Tailwind's stylesheet order. This would require either:

  • Creating a cn helper with tailwind-merge, or
  • Adding tailwind-merge as a dependency and creating a wrapper

Currently, neither exists in the codebase, so this refactor would require additional setup first.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@ui/src/design-system/components/sort-control.tsx` at line 1, The import of
classNames in sort-control.tsx should be replaced by a Tailwind-merge-aware
helper so conflicting Tailwind utilities from buttonVariants are resolved;
create or use a cn wrapper that composes classnames with tailwind-merge (or add
tailwind-merge and a small cn utility) and update usages in this file to call
cn(...) instead of classNames(...), ensuring buttonVariants({ size: 'small',
variant: 'outline' }) plus explicit classes like "w-auto" are merged correctly;
update the import (replace classNames import) and all calls referring to
classNames in sort-control.tsx to use the new cn helper.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@ui/src/design-system/components/sort-control.tsx`:
- Line 1: The import of classNames in sort-control.tsx should be replaced by a
Tailwind-merge-aware helper so conflicting Tailwind utilities from
buttonVariants are resolved; create or use a cn wrapper that composes classnames
with tailwind-merge (or add tailwind-merge and a small cn utility) and update
usages in this file to call cn(...) instead of classNames(...), ensuring
buttonVariants({ size: 'small', variant: 'outline' }) plus explicit classes like
"w-auto" are merged correctly; update the import (replace classNames import) and
all calls referring to classNames in sort-control.tsx to use the new cn helper.

@annavik annavik merged commit 6c8b2fc into main Feb 18, 2026
7 checks passed
@annavik annavik deleted the fix/small-screen-tweaks branch February 18, 2026 17:59
@annavik annavik mentioned this pull request Feb 19, 2026
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.

1 participant

Comments