プロジェクト

全般

プロフィール

Vote #78688

完了

Allow "max-height", "max-width", "min-height" and "min-width" CSS properties in Textile

Admin Redmine さんが約2年前に追加. 約2年前に更新.

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

0%

予定工数:
category_id:
26
version_id:
99
issue_org_id:
26552
author_id:
150486
assigned_to_id:
332
comments:
12
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

It is not possible to specify the max-width of an image.

The attached patch fixes it.


journals

--------------------------------------------------------------------------------
I suggest applying this patch (that's why I wrote it).
--------------------------------------------------------------------------------
Thank you for suggesting the improvement.

I almost agree with you, "max-width" property is beneficial. But I think "max-height" should be available as well. Probably users believe they can also use "max-height" if Redmine supports "max-width". I have slightly modified your patch to support "max-height".
--------------------------------------------------------------------------------
Setting target version to 4.1.0.
--------------------------------------------------------------------------------
Updated the patch to support min-width and min-height. Now the patch supports properties as follows:

* min-width
* min-height
* max-width
* max-height
--------------------------------------------------------------------------------
Added tests to the patch.
--------------------------------------------------------------------------------
Committed. Thank you for suggesting this improvement and sharing your patch.
--------------------------------------------------------------------------------
Go MAEDA wrote:
> Added tests to the patch.

I would suggest to add the same two tests also for max-height and height.
--------------------------------------------------------------------------------
Marius BALTEANU wrote:
> Go MAEDA wrote:
> > Added tests to the patch.
>
> I would suggest to add the same two tests also for max-height and height.

I agree.
--------------------------------------------------------------------------------
Marius and Mischa, thank you for pointing it out. Here is a patch to add tests for "height" and "max-height".
--------------------------------------------------------------------------------
Go MAEDA wrote:
> Marius and Mischa, thank you for pointing it out. Here is a patch to add tests for "height" and "max-height".

Looks good to me.
--------------------------------------------------------------------------------
Committed tests for "height" and "max-height" in r17175.
--------------------------------------------------------------------------------

Admin Redmine さんが約2年前に更新

  • カテゴリText formatting_26 にセット
  • 対象バージョン4.0.0_99 にセット

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

いいね!0
いいね!0