#4198 closed Bug (fixed)
admin javascript calendar spacing problem
Reported by: | Owned by: | xian | |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Flavio Curella | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | yes |
Description
See the right edge of the calendar in the attached screen capture.
Setting the table's width to 100% seems to make the gap disappear (at least in Firefox on Linux).
-
django/contrib/admin/media/css/widgets.css
45 45 .calendarbox, .clockbox { margin:5px auto; font-size:11px; width:16em; text-align:center; background:white; position:relative; } 46 46 .clockbox { width:9em; } 47 47 .calendar { margin:0; padding: 0; } 48 .calendar table { margin:0; padding:0; border-collapse:collapse; background:white; width: 99%; }48 .calendar table { margin:0; padding:0; border-collapse:collapse; background:white; width:100%; } 49 49 .calendar caption, .calendarbox h2 { margin: 0; font-size:11px; text-align:center; border-top:none; } 50 50 .calendar th { font-size:10px; color:#666; padding:2px 3px; text-align:center; background:#e1e1e1 url(../img/admin/nav-bg.gif) 0 50% repeat-x; border-bottom:1px solid #ddd; } 51 51 .calendar td { font-size:11px; text-align: center; padding: 0; border-top:1px solid #eee; border-bottom:none; }
So anyone know a reason why this needs to be 99%? Is this needed so that other browsers don't break?
Attachments (1)
Change History (11)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:4 by , 17 years ago
Triage Stage: | Design decision needed → Accepted |
---|
comment:5 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → Bug |
comment:6 by , 13 years ago
UI/UX: | set |
---|
by , 13 years ago
comment:7 by , 13 years ago
Easy pickings: | set |
---|
Im confirming the incorrect displahying on Safari 5.1 Os X.
I've added a patch, basically just rewriting xian's fix as a diff.
Version 0, edited 13 years ago by (next)
comment:8 by , 13 years ago
Cc: | added |
---|
comment:9 by , 13 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Confirmed fixed on Windows in IE 7, Firefox 5, Chrome, Safari
Note:
See TracTickets
for help on using tickets.
doh, can't attach the screen capture due to http://trac.edgewall.org/ticket/4087, so here it is hosted elsewhere: