From c6d369c52baaeb926a39bf06a81e7d2ed72a1520 Mon Sep 17 00:00:00 2001 From: nicolas Date: Wed, 23 Nov 2016 16:26:53 +0100 Subject: [PATCH 1/3] Checkboxes label adjustement When the label of a checkbox is more than one line long, avoid unalignment. --- app/assets/stylesheets/forms.scss | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/forms.scss b/app/assets/stylesheets/forms.scss index 306f474d6f..fdaa60ca59 100644 --- a/app/assets/stylesheets/forms.scss +++ b/app/assets/stylesheets/forms.scss @@ -47,12 +47,16 @@ code { color: #9baec8; display: block; } + + label.checkbox { + position: relative; + padding-left: 25px; + } input[type=checkbox] { - display: inline-block; - position: relative; - top: 3px; - margin-right: 8px; + position: absolute; + left: 0; + top: 0; } } From 62dc431e9d14b7a5a23035df8ae643c9910b0930 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 25 Nov 2016 14:01:14 +0100 Subject: [PATCH 2/3] Fix checkbox spacing --- app/assets/stylesheets/forms.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/forms.scss b/app/assets/stylesheets/forms.scss index fdaa60ca59..22b05946e6 100644 --- a/app/assets/stylesheets/forms.scss +++ b/app/assets/stylesheets/forms.scss @@ -47,7 +47,7 @@ code { color: #9baec8; display: block; } - + label.checkbox { position: relative; padding-left: 25px; @@ -56,7 +56,8 @@ code { input[type=checkbox] { position: absolute; left: 0; - top: 0; + top: 1px; + margin: 0; } } From abeccf6eb273f188959a0b90332c36c151f4f5a1 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 25 Nov 2016 15:21:22 +0100 Subject: [PATCH 3/3] X-RateLimit-Reset formatted with iso8601 --- app/controllers/api_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index a3a2a3275d..d2d3bc4a4b 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -48,7 +48,7 @@ class ApiController < ApplicationController response.headers['X-RateLimit-Limit'] = match_data[:limit].to_s response.headers['X-RateLimit-Remaining'] = (match_data[:limit] - match_data[:count]).to_s - response.headers['X-RateLimit-Reset'] = (now + (match_data[:period] - now.to_i % match_data[:period])).to_s + response.headers['X-RateLimit-Reset'] = (now + (match_data[:period] - now.to_i % match_data[:period])).iso8601(6) end def set_pagination_headers(next_path = nil, prev_path = nil)