プロジェクト

全般

プロフィール

Vote #77783

完了

Tab buttons appear on pages that have no tabs

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

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

0%

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

説明

The JS condition that's supposed to hide the tab buttons checks if the first LI element is visible or not.
If there is no LI element, the tab buttons are always shown.

file: public/javascripts/application.js
line: 383

replace:

if ((tabsWidth < el.width() - bw) && (lis.first().is(':visible'))) {

by:

if ((tabsWidth < el.width() - bw) && (lis.length === 0 || lis.first().is(':visible'))) {

In case it helps, here is my environemt:

Environment:
  Redmine version                3.3.0.stable
  Ruby version                   2.1.5-p273 (2014-11-13) [x86_64-linux-gnu]
  Rails version                  4.2.6
  Environment                    production
  Database adapter               Mysql2
SCM:
  Git                            2.1.4
  Filesystem                     
Redmine plugins:
  redmine_agile                  1.4.1
  redmine_backlogs               v1.0.6
  redmine_checklists             3.1.3

Sorry not provinding a patch but I'm a Git guy so I don't have anything related to SVN installed on my system.


journals

E C wrote:
>
> Sorry not provinding a patch but I'm a Git guy so I don't have anything related to SVN installed on my system.

You don't need SVN to generate a patch. Check [[How_to_create_patch_series_on_Mercurial_and_Git]] or use the command *git diff > path_to_patch*
--------------------------------------------------------------------------------
Thank you for the pointer. You might add it on the [[Submissions#Submitting-a-Patch]] wiki page.
Here is the patch.

--------------------------------------------------------------------------------
I confirmed this issue by removing all li elements in div#main-menu ul.

!23751.jpg!
--------------------------------------------------------------------------------
Patch committed, thanks.
--------------------------------------------------------------------------------

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

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

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

いいね!0
いいね!0