Skip to content

Conversation

olestan
Copy link
Member

@olestan olestan commented Oct 28, 2026 •

Summary

Improved visual consistency, responsiveness, and usability across the authentication pages, recipe creation form, and recipe detail page. Changes primarily affect styling, layout, and user interactions.

The changes focus on making the interface more consistent with the Explore page while improving image uploads, form interactions, and accessibility.

Changes

Authentication pages

  • Removed the "Recipe Platform" heading from Login and Register.
  • Refined spacing across both pages.
  • Improved layout and responsiveness on smaller screens.

Recipe creation

  • Updated the Add/Edit Recipe page heading to match the Explore page styling.
  • Fixed recipe image preview overflow on desktop.
  • Redesigned the default image upload area with a custom drag-and-drop interface.
  • Added hover, active, and drag-over states for image uploads.

Ingredients and instructions

  • Made drag handles more visible and easier to interact with.
  • Improved alignment between drag handles, input fields, and delete buttons.
  • Adjusted drag handle sizing and introduced more neutral colors.
  • Improved visual feedback when reordering ingredients and instructions.

Recipe details

  • Removed visible rating restriction messages to reduce visual clutter.
  • Kept "You cannot rate your own recipe" and "Sign in to rate this recipe" as screen-reader-only text to preserve accessibility.

Testing

  • npm run check
  • npm run test
  • Manually verified Login and Register on desktop and mobile.
  • Manually verified Add/Edit Recipe layouts.
  • Tested image selection, drag-and-drop, cropping, preview, and removal.
  • Tested ingredient and instruction reordering.

AI usage

AI assistance was used to suggest styling improvements, refine CSS, and improve the layout and interaction design.

@olestan olestan requested a review from a team as a code owner October 28, 2026 19:26
Copy link
Member

@oliveror oliveror left a comment •

Choose a reason for hiding this comment

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

Thanks for the cleanup, the image upload area and the auth cards look much more consistent now! I will approve at this time, but I did identify two smaller things that should be looked at before merging. See comments below.

Comment on lines +312 to +316
box-sizing: border-box;
width: 2.5rem;
min-width: 2.5rem;
height: 2.5rem;
min-height: 2.5rem;
Copy link
Member

Choose a reason for hiding this comment

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

The handle went from min-width/min-height: var(--target-size-min) (2.75rem) to a fixed 2.5rem. Our style guide (styles/style_guide/SKILL.md) says touch-oriented controls must use --target-size-min, and this handle is a pointer/touch drag target (touch-action: none). It also no longer matches the new __delete-control right next to it, which does use --target-size-min, so the two controls in each row end up different sizes. Please use var(--target-size-min) for width/height/min-width/min-height instead of 2.5rem.

@olestan olestan merged commit 8fd5537 into dev Oct 29, 2026
2 checks passed
@olestan olestan deleted the style/improve-ui-consistency branch October 29, 2026 14:59
oliveror pushed a commit that referenced this pull request Oct 30, 2026
* Style/improve UI consistency (#63)

* style(recipes): improve recipe form layout and image upload UI

* style(recipes): improve drag handle styling and alignment

* style(auth): refine login and registration form spacing

* test: update tests

* Chore/add seeded recipes (#62)

* chore(recipes): add seeded recipes with local images

* fix(seed): isolate test image uploads from application storage

* docs: update documentation

---------

Co-authored-by: Ole Stangeland <olestan@stud.ntnu.no>
oliveror added a commit that referenced this pull request Nov 12, 2026
…main) (#66)

* Style/improve UI consistency (#63)

* style(recipes): improve recipe form layout and image upload UI

* style(recipes): improve drag handle styling and alignment

* style(auth): refine login and registration form spacing

* test: update tests

* Chore/add seeded recipes (#62)

* chore(recipes): add seeded recipes with local images

* fix(seed): isolate test image uploads from application storage

* docs: update documentation

* Hasan/fix/review accessibility performance (#65)

* Improve recipe sorting, query caching and accessibility coverage

* docs: summarize delivery 3 review improvements and HTTPS clarification

---------

Co-authored-by: hasan.fawzi <hasan.fawzi@hoglund.no>

---------

Co-authored-by: Ole Stangeland <olestan@stud.ntnu.no>
Co-authored-by: Hasan Mohammad Fawzi <hasanmo@stud.ntnu.no>
Co-authored-by: hasan.fawzi <hasan.fawzi@hoglund.no>
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants