Public bug reported:

With some network interface devices, nma_utils_get_device_description
could return a very long description string so you'll end up with
awkwardly wide nm applet menu that spans almost more than half of
horizontal area on your screen. On small screen device like laptop and
netbook where screen estate is limited , you don't really want this.

So it'd be a good idea to truncate the desc string if it's too long. I'm
proposing the maximum length for the desc string to be 35 characters
before it gets truncated. Also truncation is done in the middle so we
don't lose the info bit near the end of the desc string.

I've prepared a patch for that. Please check the patch file that I
attached.

Screenshots
Before: http://i.imgur.com/5KC84X8.png
After: http://i.imgur.com/FQmGJ20.png

** Affects: network-manager-applet (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: long-device-desc too-wide-menu

** Attachment added: "Truncate long device desc if it exceeds 35 characters"
   
https://bugs.launchpad.net/bugs/1263078/+attachment/3933207/+files/truncate_long_device_desc_in_applet_menu.patch

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager-applet in Ubuntu.
https://bugs.launchpad.net/bugs/1263078

Title:
  Truncate long device description in applet menu

Status in “network-manager-applet” package in Ubuntu:
  New

Bug description:
  With some network interface devices, nma_utils_get_device_description
  could return a very long description string so you'll end up with
  awkwardly wide nm applet menu that spans almost more than half of
  horizontal area on your screen. On small screen device like laptop and
  netbook where screen estate is limited , you don't really want this.

  So it'd be a good idea to truncate the desc string if it's too long.
  I'm proposing the maximum length for the desc string to be 35
  characters before it gets truncated. Also truncation is done in the
  middle so we don't lose the info bit near the end of the desc string.

  I've prepared a patch for that. Please check the patch file that I
  attached.

  Screenshots
  Before: http://i.imgur.com/5KC84X8.png
  After: http://i.imgur.com/FQmGJ20.png

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/1263078/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to