Skip to content

Commit

Permalink
🚸 Prevent auto-zoom on mobile (#2511)
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrLevin authored Apr 20, 2024
1 parent 7babb35 commit 55351c1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 4 additions & 0 deletions resources/sass/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,7 @@ body {
font-size: map-get($font-sizes, 2);
}
}

.mobile-input-fs-16 {
font-size: 16px;
}
12 changes: 4 additions & 8 deletions resources/vue/components/CheckinInterface.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default {
<textarea
name="body"
id="message-text"
class="form-control"
class="form-control mobile-input-fs-16"
v-model="statusText"
:maxlength="allowedChars"
style="min-height: 130px;">
Expand All @@ -141,7 +141,7 @@ export default {
<div class="mt-2">
<div class="col-auto btn-group me-1" :class="{'d-none' : profileStore.getMastodon == null}" >
<input type="checkbox" class="btn-check" autocomplete="off" v-model="toot" autocompleted="" id="toot_check" :disabled="visibility === 3">
<label class="btn btn-sm btn-outline-mastodon" for="toot_check" style="">
<label class="btn btn-sm btn-outline-mastodon" for="toot_check">
<i class="fab fa-mastodon"></i>
<span class="visually-hidden-focusable">{{ trans("stationboard.check-toot") }}</span>
</label>
Expand Down Expand Up @@ -171,10 +171,10 @@ export default {
<div class="col btn-group me-1">
<button class="btn btn-sm btn-outline-primary dropdown-toggle" type="button"
id="visibilityDropdownButton" data-mdb-dropdown-animation="off"
data-mdb-toggle="dropdown" aria-expanded="false" style="">
data-mdb-toggle="dropdown" aria-expanded="false">
<i :class="visibilityIcon" aria-hidden="true"></i>
</button>
<ul class="dropdown-menu" aria-labelledby="visibilityDropdownButton" style="">
<ul class="dropdown-menu" aria-labelledby="visibilityDropdownButton">
<li class="dropdown-item" @click="visibility = 0">
<i class="fa fa-globe-americas" aria-hidden="true"></i> {{ trans("status.visibility.0") }}
<br>
Expand Down Expand Up @@ -211,7 +211,3 @@ export default {
</button>
</div>
</template>

<style scoped lang="scss">
</style>
4 changes: 2 additions & 2 deletions resources/vue/components/StationAutocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default {
<template>
<FullScreenModal ref="modal">
<template #header>
<input type="text" name="station" class="form-control"
<input type="text" name="station" class="form-control mobile-input-fs-16"
:placeholder="placeholder"
v-model="stationInput"
@keyup.enter="setStationFromText"
Expand Down Expand Up @@ -185,7 +185,7 @@ export default {
<div class="card-body">
<div id="station-autocomplete-container" style="z-index: 3;">
<div class="input-group mb-2 mr-sm-2">
<input type="text" name="station" class="form-control"
<input type="text" name="station" class="form-control mobile-input-fs-16"
:placeholder="placeholder"
v-model="stationInput"
@focusin="showModal"
Expand Down

0 comments on commit 55351c1

Please sign in to comment.