Moodle

Should navbar items be trimmed to a set number of characters

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Libraries
  • Labels:
    None
  • Difficulty:
    Easy
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

Martin raised the point that we may need to look at the number of characters we show on the navbar.
Point in fact is when upgrading the navbar message that explains what is going on gets trimmed.

Martin also mentioned that long titles forum discussions were not trimmed before... now they are.

We could solve this by simply deciding on how many characters we will permit and then creating a property for navbar so that the specific area of code being executed can override that value if they want.

Activity

Hide
Sam Hemelryk added a comment -

Added a couple of watchers

Show
Sam Hemelryk added a comment - Added a couple of watchers
Hide
Tim Hunt added a comment -

I think it probably should truncate, but with a tooltip (title="...") giving the full text.

Show
Tim Hunt added a comment - I think it probably should truncate, but with a tooltip (title="...") giving the full text.
Hide
Sam Hemelryk added a comment -

This was fixed in recent updates, navbar items are truncated to 25 characters and if truncation occurs the original full length item is used as a title.
Cheers all

Show
Sam Hemelryk added a comment - This was fixed in recent updates, navbar items are truncated to 25 characters and if truncation occurs the original full length item is used as a title. Cheers all

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: