OCaml Forge

Detail: [#855] long project names overlap tabs

Bugs: Browse | Download .csv | Monitor

[#855] long project names overlap tabs

Date:
2010-12-31 16:28
Priority:
3
State:
Open
Submitted by:
Török Edwin (edwin)
Assigned to:
Sylvain Le Gall (gildor-admin)
Host:
forge.ocamlcore.org
Forwarded Upstream:
None
Summary:
long project names overlap tabs

Detailed description
See https://forge.ocamlcore.org/frs/?group_id=175
"ExtUnix - extended Unix module" text overlaps with the Hudson tab

Followup

Message
Date: 2011-01-08 09:51
Sender: Török Edwin

Here's a patch that tries to avoid breaking projectname over 2 lines.
Of course it won't help if window is too small and something else breaks lines, the real problem is that the CSS uses fixed-height tabs (30px) but that is harder to fix.

commit 3bc7ec20f2f679912b6c8094ee0e73acb4f0a149
Author: Török Edvin <edwin@clamav.net>
Date: Sat Jan 8 11:49:54 2011 +0200

don't break projectname over 2 lines

diff --git a/src/common/include/Navigation.class.php b/src/common/include/Navigation.class.php
index ddc814a..e1bdc48 100644
--- a/src/common/include/Navigation.class.php
+++ b/src/common/include/Navigation.class.php
@@ -303,7 +303,7 @@ class Navigation extends Error {
if ($project->isError()) {
} elseif (!$project->isProject()) {
} else {
- $menu['titles'][] = $project->getPublicName();
+ $menu['titles'][] = preg_replace("/\s+/","&nbsp;", $project->getPublicName());
if (isset ($GLOBALS['sys_noforcetype']) && $GLOBALS['sys_noforcetype']) {
$menu['urls'][]=util_make_uri('/project/?group_id') .$project->getId();
} else {

Attached Files:

Changes:

Field Old Value Date By
assigned_tonone2011-01-09 23:34gildor-admin