Changeset dc9256f


Ignore:
Timestamp:
Jun 2, 2015 4:41:04 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
09e867b1
Parents:
272f63d
Message:

Console: Prevent bad line-wrap of very long menu items

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/SummaryBarRenderer.java

    r272f63d rdc9256f  
    666666     */
    667667    private static String nbsp(String s) {
    668         return s.replace(" ", "&nbsp;");
     668        // if it's too long, this makes it worse
     669        if (s.length() <= 30)
     670            return s.replace(" ", "&nbsp;");
     671        else
     672            return s;
    669673    }
    670674}
Note: See TracChangeset for help on using the changeset viewer.