LiveSearch should use 50%

This commit is contained in:
Alexander Meindl 2021-01-05 12:12:29 +01:00
parent c65a7332cc
commit 44ba03c200
3 changed files with 7 additions and 3 deletions

View File

@ -16,11 +16,12 @@ linters:
- Layout/MultilineMethodCallIndentation - Layout/MultilineMethodCallIndentation
- Layout/MultilineMethodDefinitionBraceLayout - Layout/MultilineMethodDefinitionBraceLayout
- Layout/MultilineOperationIndentation - Layout/MultilineOperationIndentation
- Layout/SpaceBeforeBrackets
- Layout/TrailingEmptyLines - Layout/TrailingEmptyLines
- Lint/Void - Lint/Void
- Metrics/BlockNesting - Metrics/BlockNesting
- Rails/OutputSafety - Rails/OutputSafety
- Style/IdenticalConditionalBranches
- Style/IfUnlessModifier - Style/IfUnlessModifier
- Style/Next - Style/Next
- Style/WhileUntilModifier - Style/WhileUntilModifier
- Layout/SpaceBeforeBrackets

View File

@ -1,4 +1,4 @@
= render(partial: 'additionals/live_search_ajax_call.js', layout: false, formats: [:js]) = render partial: 'additionals/live_search_ajax_call.js', layout: false, formats: [:js]
- classes = 'title' unless defined? classes - classes = 'title' unless defined? classes
h2 class="#{classes}" h2 class="#{classes}"
= @query.new_record? ? l(title) : h(@query.name) = @query.new_record? ? l(title) : h(@query.name)

View File

@ -181,7 +181,10 @@ div.clear-both { clear: both; }
img.additionals-avatar { margin-right: 0.25em; } img.additionals-avatar { margin-right: 0.25em; }
/* Live search */ /* Live search */
.additionals-live-search input.live-search-field { font-size: 16px; } .additionals-live-search input.live-search-field {
font-size: 16px;
width: 50%;
}
.additionals-live-search { .additionals-live-search {
margin-left: 5px; margin-left: 5px;