Ticket #14868: admin-recent-actions-text-overflow.patch

File admin-recent-actions-text-overflow.patch, 1.1 KB (added by acdha, 4 years ago)

Git-generated patch

  • django/contrib/admin/media/css/dashboard.css

    From 2bddae1fc065b75ad17ea9556b5112301eda4a0e Mon Sep 17 00:00:00 2001
    From: Chris Adams <chris@improbable.org>
    Date: Wed, 8 Dec 2010 11:30:19 -0500
    Subject: [PATCH] dashboard.css: set text-overflow on recent actions
    
    If there are long words in the recent actions text
    they'll overflow out of the recent actions box. It
    would be possible to make the box expand but the
    CSS text-overflow property works perfectly here,
    allowing normal word wrapping but causing the
    browser to truncate text with an ellipsis when
    necessary (e.g. filenames or long numbers).
    
    Works in Safari, Opera, IE7+, Firefox 3.6
    ---
     django/contrib/admin/media/css/dashboard.css |    5 +++++
     1 files changed, 5 insertions(+), 0 deletions(-)
    
    diff --git a/django/contrib/admin/media/css/dashboard.css b/django/contrib/admin/media/css/dashboard.css
    index 88e3b1d..779dedb 100644
    a b  
    2222ul.actionlist li {
    2323    list-style-type: none;
    2424}
     25
     26ul.actionlist li.changelink {
     27    overflow: hidden;
     28        text-overflow: ellipsis;
     29}
     30 No newline at end of file
Back to Top