Fix broken mobile responsiveness and URL input type

This commit is contained in:
Liyas Thomas
2020-08-17 17:04:13 +05:30
parent 629ee3e33f
commit 4f75dd30fe
3 changed files with 20 additions and 17 deletions

View File

@@ -383,12 +383,16 @@ section:target {
input[type="file"], input[type="file"],
input[type="radio"], input[type="radio"],
.hide-on-large-screen,
#installPWA, #installPWA,
.hidden { .hidden {
display: none; display: none;
} }
.show-on-large-screen {
display: flex;
flex: 1;
}
.method, .method,
kbd, kbd,
select, select,
@@ -574,15 +578,6 @@ ol li {
} }
} }
.show-on-small-screen {
display: flex;
}
.show-on-large-screen {
display: flex;
flex: 1;
}
.info-response { .info-response {
color: #ffeb3b; color: #ffeb3b;
} }
@@ -726,11 +721,6 @@ section {
display: none; display: none;
} }
.hide-on-large-screen,
.show-on-small-screen {
display: inline-flex;
}
.sticky-inner { .sticky-inner {
position: relative; position: relative;
width: 100%; width: 100%;

View File

@@ -3,7 +3,8 @@
<div class="flex-wrap"> <div class="flex-wrap">
<span class="slide-in"> <span class="slide-in">
<nuxt-link :to="localePath('index')"> <nuxt-link :to="localePath('index')">
<h1 class="logo">Hoppscotch</h1> <h1 class="logo hide-on-small-screen">Hoppscotch</h1>
<h1 class="logo show-on-small-screen">Hs</h1>
</nuxt-link> </nuxt-link>
</span> </span>
<span> <span>
@@ -233,6 +234,8 @@
</template> </template>
<style scoped lang="scss"> <style scoped lang="scss">
$responsiveWidth: 768px;
@keyframes slideIn { @keyframes slideIn {
0% { 0% {
opacity: 0; opacity: 0;
@@ -257,6 +260,16 @@
color: var(--ac-color); color: var(--ac-color);
} }
} }
.show-on-small-screen {
display: none;
}
@media (max-width: $responsiveWidth) {
.show-on-small-screen {
display: inline-flex;
}
}
</style> </style>
<script> <script>

View File

@@ -148,7 +148,7 @@
@keyup.enter="isValidURL ? sendRequest() : null" @keyup.enter="isValidURL ? sendRequest() : null"
id="url" id="url"
name="url" name="url"
type="url" type="text"
v-model="uri" v-model="uri"
spellcheck="false" spellcheck="false"
@input="pathInputHandler" @input="pathInputHandler"