Opened 15 years ago

Closed 15 years ago

#11600 closed (fixed)

"View on site" link is not properly aligned

Reported by: Ilya Semenov Owned by: Brian Rosner
Component: Core (Management commands) Version: dev
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When using stacked inline and a model with defined get_absolute_url(), the "View on site" link is not properly aligned. It should be (at least) moved a bit to the right to be vertically aligned with the field names, but better moved to the "related object title" line (in my example it would be "Image: pink&white(18) - View on site")

Attachments (3)

view-on-site.png (26.2 KB ) - added by Ilya Semenov 15 years ago.
Screenshot of the incorrect layout
view-on-site-fix.png (4.7 KB ) - added by Sean Brant 15 years ago.
What it looks like fixed
stackedinline-viewonsite-fix.diff (1.6 KB ) - added by Sean Brant 15 years ago.
This moves the link next to the related object title

Download all attachments as: .zip

Change History (6)

by Ilya Semenov, 15 years ago

Attachment: view-on-site.png added

Screenshot of the incorrect layout

comment:1 by Alex Gaynor, 15 years ago

Triage Stage: UnreviewedAccepted

by Sean Brant, 15 years ago

Attachment: view-on-site-fix.png added

What it looks like fixed

by Sean Brant, 15 years ago

This moves the link next to the related object title

comment:2 by Brian Rosner, 15 years ago

Owner: changed from nobody to Brian Rosner
Status: newassigned

comment:3 by Adrian Holovaty, 15 years ago

Resolution: fixed
Status: assignedclosed

(In [12149]) Fixed #11600 -- Fixed placement of 'View on site' in stacked inline admin template. Thanks, seanbrant

Note: See TracTickets for help on using tickets.
Back to Top