Skip to content

Commit

Permalink
Merge pull request #1909 from IsaacYangSLA/fix/pulldown-menu
Browse files Browse the repository at this point in the history
Avoid overflow text in pulldown menu by limit title to 21 characters
  • Loading branch information
IsaacYangSLA authored Dec 8, 2017
2 parents 6cfaef7 + 476b166 commit addf0d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions digits/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def home(tab=2):
for extension in data_extensions:
ext_category = extension.get_category()
ext_title = extension.get_title()
ext_title = ext_title[:21] + ' ..' if len(ext_title) > 21 else ext_title
ext_id = extension.get_id()
if ext_category not in new_dataset_options:
new_dataset_options[ext_category] = {}
Expand Down

0 comments on commit addf0d4

Please sign in to comment.