From 48143b16d37f5150f0497359f859c95ead536e11 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 7 Nov 2015 14:01:53 +0000 Subject: [PATCH] Don't use 100% width for date fields (#19097). git-svn-id: http://svn.redmine.org/redmine/trunk@14828 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 2 +- public/stylesheets/responsive.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index fce5d6e22..0d15f2cd4 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1143,7 +1143,7 @@ module ApplicationHelper def calendar_for(field_id) include_calendar_headers_tags - javascript_tag("$(function() { $('##{field_id}').datepicker(datepickerOptions); });") + javascript_tag("$(function() { $('##{field_id}').addClass('date').datepicker(datepickerOptions); });") end def include_calendar_headers_tags diff --git a/public/stylesheets/responsive.css b/public/stylesheets/responsive.css index a251d3ef2..6664827df 100644 --- a/public/stylesheets/responsive.css +++ b/public/stylesheets/responsive.css @@ -762,7 +762,7 @@ max-width: 100%; } - .box.tabular input[type="checkbox"] { + .box.tabular input[type="checkbox"], .box.tabular input.date { width: auto; max-width: 95%; } -- 2.39.5