Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(558)

Issue 6843082: Fix overflow on charm name.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by bac
Modified:
11 years, 6 months ago
Reviewers:
mp+134961
Visibility:
Public.

Description

Fix overflow on charm name. The sections in the charm search results pane are fixed at 70px high. Due to the way we construct the name, and the fact the charm authors can set the name to be anything they want, some names exceed the allotted one-line and wreak havoc on the layout. Obvious lesson learned: any element with a fixed height and user-supplied data must account for overflow. The deploy button placement was also fixed. Matt C. has seen screenshots of the truncation and offered tweaks on the vertical spacing which are incorporated here. https://code.launchpad.net/~bac/juju-gui/charm-spill/+merge/134961 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Fix overflow on charm name. #

Total comments: 3

Patch Set 3 : Fix overflow on charm name. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -7 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M app/templates/charm-search-result.handlebars View 1 chunk +5 lines, -2 lines 0 comments Download
M app/views/charm-panel.js View 1 chunk +1 line, -0 lines 0 comments Download
M lib/views/stylesheet.less View 1 2 chunks +8 lines, -5 lines 0 comments Download

Messages

Total messages: 6
bac
Please take a look.
11 years, 6 months ago (2012-11-19 16:35:31 UTC) #1
bac
Please take a look.
11 years, 6 months ago (2012-11-19 16:42:19 UTC) #2
matthew.scott
Looks good and works well. Thanks Brad, +1 https://codereview.appspot.com/6843082/diff/2001/app/templates/charm-search-result.handlebars File app/templates/charm-search-result.handlebars (right): https://codereview.appspot.com/6843082/diff/2001/app/templates/charm-search-result.handlebars#newcode12 app/templates/charm-search-result.handlebars:12: {{! ...
11 years, 6 months ago (2012-11-19 17:06:44 UTC) #3
thiago
Thanks bac. It looks good. I have just a minor comment. But I think it ...
11 years, 6 months ago (2012-11-19 17:35:08 UTC) #4
bac
Thanks for the reviews https://codereview.appspot.com/6843082/diff/2001/app/templates/charm-search-result.handlebars File app/templates/charm-search-result.handlebars (right): https://codereview.appspot.com/6843082/diff/2001/app/templates/charm-search-result.handlebars#newcode15 app/templates/charm-search-result.handlebars:15: <a class="charm-detail" On 2012/11/19 17:35:08, ...
11 years, 6 months ago (2012-11-20 11:49:08 UTC) #5
bac
11 years, 6 months ago (2012-11-20 12:08:20 UTC) #6
*** Submitted:

Fix overflow on charm name.

The sections in the charm search results pane are fixed at 70px high.
Due to the way we construct the name, and the fact the charm authors
can set the name to be anything they want, some names exceed the
allotted one-line and wreak havoc on the layout.

Obvious lesson learned: any element with a fixed height and
user-supplied data must account for overflow.

The deploy button placement was also fixed.

Matt C. has seen screenshots of the truncation and offered tweaks on
the vertical spacing which are incorporated here.

R=matthew.scott, thiago
CC=
https://codereview.appspot.com/6843082
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b