Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix year input fields width #999

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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