Settings

Theme

Ask HN: How to deal with agents constantly messing up padding/alignment in UIs?

3 points by ex-aws-dude 15 days ago · 3 comments · 1 min read


Whenever I use claude or copilot for a UI task I have to spent a lot of time getting the alignment and padding of elements correct

The initial pass of the agent usually works but everything is slightly off and things are out of alignment a lot.

Telling the agent to fix it takes like 5-10 tries sometimes as it tries different CSS changes

It seems the real problem is the agent cannot actually verify the result of how the UI renders

It’s like an open loop rather than closed loop

drchaim 15 days ago

I go further, how do you work in UI/frontend tasks? As a backend I know how to control agents in backend code, but in FE I am almost lost. Any hint isn’t appreciated

figassis 15 days ago

Try playwright? Works for me

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection