プロジェクト

全般

プロフィール

Vote #62857

完了

Unusable side-by-side diff - horizontal scrolling

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
高め
担当者:
-
カテゴリ:
UI_10
対象バージョン:
開始日:
2008/03/15
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
1
issue_org_id:
866
author_id:
528
assigned_to_id:
0
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

The side by side diff is pretty much unusable because the code is neither wrapped when it's too long nor is the horizontal scrollbar anywhere reachable (there is one at the very bottom of the page for the div). You should either be able to scroll the entire page horizontally. That way you don't need to scroll all the way down to use the horizontal scrollbar but can scroll horizontally anywhere on the page using your browser. Or lines should be wrapped to not let this happen at all. For an example see http://code.phpbb.com/repositories/diff/5/trunk/phpBB/includes/functions_compress.php?rev_to=5853&rev=6015&action=diff&id=5&controller=repositories&path=trunk%2FphpBB%2Fincludes%2Ffunctions_compress.php&type=sbs


journals

Well the demo link doesn't show it anymore as I removed class="autoscroll" from the div as I'd like to be able to use it ;-)
--------------------------------------------------------------------------------
It was fixed in r1020. Diffs are now wrapped:
http://www.redmine.org/repositories/diff/redmine?rev=1249&type=sbs

I think you can fix it manually by adding this to your css:

<pre>
table.filecontent td.line-code pre {
white-space: pre-wrap; /* CSS2.1 compliant */
white-space: -moz-pre-wrap; /* Mozilla-based browsers */
white-space: -o-pre-wrap; /* Opera 7+ */
}
</pre>

--------------------------------------------------------------------------------
Thanks, that works.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

duplicates,Closed,200,scm view diffs

Admin Redmine さんが3年以上前に更新

  • カテゴリUI_10 にセット
  • 対象バージョン0.7_1 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0