mirror of
https://github.com/hoppscotch/hoppscotch
synced 2024-11-22 23:28:35 +00:00
refactor(ui): minor ui improvements
This commit is contained in:
parent
44026fcd41
commit
9698932bde
@ -1,5 +1,10 @@
|
||||
<template>
|
||||
<SmartModal v-if="show" full-width @close="$emit('hide-modal')">
|
||||
<SmartModal
|
||||
v-if="show"
|
||||
max-width="sm:max-w-md"
|
||||
full-width
|
||||
@close="$emit('hide-modal')"
|
||||
>
|
||||
<template #body>
|
||||
<input
|
||||
id="command"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<aside class="flex h-full justify-between md:flex-col">
|
||||
<nav class="flex flex-nowrap md:flex-col">
|
||||
<nav class="flex flex-nowrap md:flex-col flex-1 md:flex-none">
|
||||
<NuxtLink
|
||||
v-for="(navigation, index) in primaryNavigation"
|
||||
:key="`navigation-${index}`"
|
||||
|
@ -3,7 +3,7 @@
|
||||
<transition v-if="show" name="fade" appear>
|
||||
<div class="inset-0 transition-opacity z-20 fixed" @keydown.esc="close()">
|
||||
<div
|
||||
class="bg-primaryDark opacity-90 inset-0 absolute"
|
||||
class="bg-primaryLight opacity-90 inset-0 absolute"
|
||||
tabindex="0"
|
||||
@click="close()"
|
||||
></div>
|
||||
|
@ -2,6 +2,7 @@
|
||||
<SmartModal
|
||||
v-if="show"
|
||||
:title="$t('support.title')"
|
||||
max-width="sm:max-w-md"
|
||||
@close="$emit('hide-modal')"
|
||||
>
|
||||
<template #body>
|
||||
|
@ -2,6 +2,7 @@
|
||||
<SmartModal
|
||||
v-if="show"
|
||||
:title="`${$t('modal.import_export')} ${$t('modal.collections')}`"
|
||||
max-width="sm:max-w-md"
|
||||
@close="hideModal"
|
||||
>
|
||||
<template #actions>
|
||||
|
@ -2,6 +2,7 @@
|
||||
<SmartModal
|
||||
v-if="show"
|
||||
:title="`${$t('modal.import_export')} ${$t('modal.collections')}`"
|
||||
max-width="sm:max-w-md"
|
||||
@close="hideModal"
|
||||
>
|
||||
<template #actions>
|
||||
|
@ -2,6 +2,7 @@
|
||||
<SmartModal
|
||||
v-if="show"
|
||||
:title="`${$t('modal.import_export')} ${$t('environment.title')}`"
|
||||
max-width="sm:max-w-md"
|
||||
@close="hideModal"
|
||||
>
|
||||
<template #actions>
|
||||
|
@ -2,6 +2,7 @@
|
||||
<SmartModal
|
||||
v-if="show"
|
||||
:title="`${$t('auth.login_to_hoppscotch')}`"
|
||||
max-width="sm:max-w-md"
|
||||
dialog
|
||||
@close="hideModal"
|
||||
>
|
||||
|
@ -9,7 +9,7 @@
|
||||
>
|
||||
<transition name="fade" appear>
|
||||
<div
|
||||
class="bg-primaryDark opacity-90 inset-0 transition fixed"
|
||||
class="bg-primaryLight opacity-90 inset-0 transition fixed"
|
||||
@touchstart="!dialog ? close() : null"
|
||||
@touchend="!dialog ? close() : null"
|
||||
@mouseup="!dialog ? close() : null"
|
||||
@ -34,7 +34,7 @@
|
||||
<div
|
||||
class="
|
||||
bg-primary
|
||||
shadow-lg
|
||||
shadow-xl
|
||||
text-left
|
||||
w-full
|
||||
transform
|
||||
@ -42,12 +42,12 @@
|
||||
inline-block
|
||||
align-bottom
|
||||
overflow-hidden
|
||||
sm:max-w-md sm:align-middle
|
||||
md:rounded-lg
|
||||
sm:align-middle sm:rounded-xl
|
||||
"
|
||||
:class="[
|
||||
{ 'mt-24 md:mb-8': placement === 'top' },
|
||||
{ 'p-4': !fullWidth },
|
||||
maxWidth,
|
||||
]"
|
||||
>
|
||||
<div
|
||||
@ -122,6 +122,10 @@ export default defineComponent({
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
maxWidth: {
|
||||
type: String,
|
||||
default: "sm:max-w-lg",
|
||||
},
|
||||
},
|
||||
setup() {
|
||||
const { disableKeybindings, enableKeybindings } = useKeybindingDisabler()
|
||||
|
Loading…
Reference in New Issue
Block a user