After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 255973 - Contact preview waste space and cosmetic correction
Contact preview waste space and cosmetic correction
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Contacts
2.24.x (obsolete)
Other All
: Normal minor
: Future
Assigned To: evolution-addressbook-maintainers
Evolution QA team
: 254629 319245 (view as bug list)
Depends on:
Blocks: 327508 327510
 
 
Reported: 2004-03-23 21:48 UTC by Baptiste Mille-Mathias
Modified: 2011-02-16 07:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
a screenshot of the different point (139.60 KB, image/jpeg)
2004-03-23 21:58 UTC, Baptiste Mille-Mathias
  Details
Patch for adapting content of preview to orientation (11.75 KB, patch)
2011-02-07 16:39 UTC, Dan Vrátil
needs-work Details | Review
Actual view with a patch applied - contact.png (81.48 KB, image/png)
2011-02-08 16:34 UTC, Milan Crha
  Details
Fixed patch (16.89 KB, patch)
2011-02-14 11:10 UTC, Dan Vrátil
none Details | Review
Little tunning to the previous patch (18.96 KB, patch)
2011-02-14 13:08 UTC, Dan Vrátil
reviewed Details | Review
Fix issues from comment #12 (19.68 KB, patch)
2011-02-15 15:39 UTC, Dan Vrátil
committed Details | Review

Description Baptiste Mille-Mathias 2004-03-23 21:48:35 UTC
the contact preview layout use a lot of place to display information :

1°) the breaking space between section (eg : work and personnal is too big)
2°) the layout uses vertical instead of horizontal, and waste a lot of
space . it oblige to scroll down to see the end of the preview.
3°) there is some useless breaking space at the end of the preview.
4°) the preview seems to be blank, perhaps some tables around the text
could make the preview more beautiful.

I attach a screenshot.
Comment 1 Baptiste Mille-Mathias 2004-03-23 21:58:26 UTC
Created attachment 43467 [details]
a screenshot of the different point
Comment 2 Baptiste Mille-Mathias 2004-03-23 22:23:01 UTC
Sorry for the spam, I set the bug to cosmetic
Comment 3 André Klapper 2005-07-19 18:14:29 UTC
changing component to "Contacts" to get rid of the UI component, also reassigning
as discussed with nags... adding UI keyword.
Comment 4 Calum Benson 2005-07-28 10:40:14 UTC
Apologies for any spam... cc'ing usability-maint on all Evolution usability
bugs. Filter on EVO-USABILITY-SPAM to ignore.
Comment 5 André Klapper 2005-08-22 11:36:52 UTC
*** Bug 254629 has been marked as a duplicate of this bug. ***
Comment 6 Sushma Rai 2005-10-20 05:51:12 UTC
*** Bug 319245 has been marked as a duplicate of this bug. ***
Comment 7 André Klapper 2006-03-22 01:29:38 UTC
removing old 2.5 target milestone and retargetting to future - sorry.
Comment 8 Dan Vrátil 2011-02-07 16:39:56 UTC
Created attachment 180315 [details] [review]
Patch for adapting content of preview to orientation

This patch provides HTML code generator for horizontally-oriented preview pane.
Comment 9 Milan Crha 2011-02-08 16:34:12 UTC
Created attachment 180394 [details]
Actual view with a patch applied - contact.png

This is what I see for my "Complete Contact". The vertical view is fine, but the classical is kinda strange, still.

a) the point 3) still applied from the comment #0, see the space between
   WorkCountry and Note section. It's too large
b) I would keep "Contact, Complete" text, the bold one, always on one line,
   it's its name, so keep it full-width. It will also cause the
   other columns being on the same line, not "Email" being below "Work".
c) the email type (grayed "(Work)", "(Home)", ...) may not wrap from
   the email address.
d) the Note should cover whole width, not only the first column.

I know my test contact doesn't have a picture set, neither IM protocols, but it's otherwise pretty complete.

Please fix the above, and try to follow coding style guideline from [1] and resubmit the patch. Thanks in advance. (I see // comments in the code, no spaces between function names and the open bracket, and when you have parameters on two lines, then its indent doesn't match - though there is no need to wrap parameters in these cases, from my point of view).

[1] http://projects.gnome.org/evolution/patch.shtml
Comment 10 Dan Vrátil 2011-02-14 11:10:36 UTC
Created attachment 180814 [details] [review]
Fixed patch

All issues mentioned by Milan are fixed in this patch.
Comment 11 Dan Vrátil 2011-02-14 13:08:59 UTC
Created attachment 180820 [details] [review]
Little tunning to the previous patch

Just small fix of the previous patch - proper freeing in accum_* functions, fixed missing title in contacts list and minor cosmetic changes of code.
Comment 12 Milan Crha 2011-02-15 15:04:56 UTC
This looks better, apart of missing chunk from modules/addressbook/e-book-shell-content.c, which is only in the first patch. Strange.

The last two things, I believe:
a) The "Notes" part seems to be rendered always, but it should be rendered only if any note is set on the contact and no other time.
b) Do not set "nowrap" on contact name (the file_as/full_name string part), this one holds whole row and can wrap. Imagine some quite long institution name, with larger words it can split on more lines.
Comment 13 Dan Vrátil 2011-02-15 15:39:36 UTC
Created attachment 180904 [details] [review]
Fix issues from comment #12

This revision fixes issues mentioned in comment #12
Comment 14 Milan Crha 2011-02-16 07:20:32 UTC
Thanks, that's it.

I changed only two things there, one was forgotten space (really little tiny) and this one:
>+	str = e_contact_get_const (contact, E_CONTACT_NOTE);
>+	if (strlen(str) == 0)

the 'if' statement to: 

>+	if (!str || !*str)

because the function can return NULL and there is no need to count "letters" to ask whether the string is empty or not.
Comment 15 Milan Crha 2011-02-16 07:22:56 UTC
Created commit 005bb4e in evo master (2.91.90+)