diff --git a/app/assets/stylesheets/repository_columns/index.scss b/app/assets/stylesheets/repository_columns/index.scss index 12d1339a6..b498e8bdf 100644 --- a/app/assets/stylesheets/repository_columns/index.scss +++ b/app/assets/stylesheets/repository_columns/index.scss @@ -7,7 +7,7 @@ #manage-repository-column { .modal-content { font-size: 14px; - height: 500px; + min-height: 500px; width: 540px; } @@ -32,10 +32,9 @@ } .modal-body { - padding: 0 15px; + padding: 0 15px 61px; .form-horizontal { - height: 390px; padding: 15px 0; } @@ -54,8 +53,11 @@ } .modal-footer { + bottom: 0; padding: 12px 15px; + position: absolute; text-align: center; + width: 100%; } .range-label { diff --git a/app/models/repository_checklist_item.rb b/app/models/repository_checklist_item.rb index 0021ea8af..7bf66000c 100644 --- a/app/models/repository_checklist_item.rb +++ b/app/models/repository_checklist_item.rb @@ -3,8 +3,7 @@ class RepositoryChecklistItem < ApplicationRecord validates :data, presence: true, uniqueness: { scope: :repository_column_id, case_sensitive: false }, - length: { minimum: Constants::NAME_MIN_LENGTH, - maximum: Constants::NAME_MAX_LENGTH } + length: { maximum: Constants::NAME_MAX_LENGTH } belongs_to :repository, inverse_of: :repository_checklist_items belongs_to :repository_column belongs_to :created_by, foreign_key: 'created_by_id', class_name: 'User',