プロジェクト

全般

プロフィール

Vote #77291

完了

Revision Graph and Table should work with vertical-align: middle

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

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
UI_10
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

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

説明

The revision list and the Raphael based graph next to it, are currently assumed to be @vertical-align: top@, i.e. the dots representing the commits are always positioned at the top of the table cell. This is a limitation for theme authors. Planio e.g. restyled the table to use @vertical-align: middle@ but now the dots are misplaced.

The patch attached inspects the currently used css properties to properly calculate the dot's position. The patch is targeted at current trunk r15251.


journals

Thanks for the patch. Could you show screenshots of the effect of this patch?
--------------------------------------------------------------------------------
Sure, here we go!

For "educational purpose" I've created a simple theme with the following @application.css@

<pre>
@import url(../../../stylesheets/application.css);

table.changesets td {
vertical-align: middle;
}
</pre>

Using this theme and the current Redmine trunk, I get the following revision table

!theme-without-patch.png!

Using the patch, I get the following

!theme-with-patch.png!

while the default theme still looks as expected

!default-with-patch.png!

This example theme does not make a lot of sense on its own. It was just created for testing. But e.g. Planio's new design uses @vertical-align: middle@ for its tables. (Planio already has the patch applied.)

!planio-with-patch.png!
--------------------------------------------------------------------------------
Thanks, I understand.
Setting target version to 3.2.2.
--------------------------------------------------------------------------------
Committed, thanks.
--------------------------------------------------------------------------------

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

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

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

いいね!0
いいね!0