Skip to content

Commit

Permalink
Fix year input fields width
Browse files Browse the repository at this point in the history
  • Loading branch information
eronisko committed Apr 19, 2024
1 parent fbcb956 commit 2402875
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 5 additions & 3 deletions resources/js/components/YearSlider.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="range-slider py-3">
<div class="col-xs-6 col-sm-1 text-left text-sm-right">
<div class="col-xs-4 col-sm-2 col-md-1 text-left text-sm-right">
<input
class="sans range-slider-from"
maxlength="5"
Expand All @@ -10,7 +10,9 @@
v-model.lazy="yearRange[0]"
/>
</div>
<div class="col-xs-6 col-sm-1 col-sm-push-10 text-right text-sm-left">
<div
class="col-xs-4 col-xs-offset-4 col-sm-2 col-sm-offset-0 col-sm-push-8 col-md-1 col-md-push-10 text-right text-sm-left"
>
<input
class="sans range-slider-to"
maxlength="5"
Expand All @@ -21,7 +23,7 @@
/>
</div>

<div class="col-xs-12 col-sm-10 col-sm-pull-1">
<div class="col-xs-12 col-sm-8 col-sm-pull-2 col-md-10 col-md-pull-1">
<div class="pt-1" :id="name + '-slider'">
<slider
:model-value="yearRange"
Expand Down
3 changes: 1 addition & 2 deletions resources/less/components/year-slider.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
}

.range-slider-from, .range-slider-to{
width: 6.0ex;
width: 100%;
border: 1px solid #888;
background: #fff;
overflow: hidden;
text-align: center;
margin-left: inherit auto;
Expand Down

0 comments on commit 2402875

Please sign in to comment.