fix: envinput styles

This commit is contained in:
liyasthomas
2022-02-09 15:53:48 +05:30
parent 0895d65188
commit 5b24224ccd
2 changed files with 6 additions and 36 deletions

View File

@@ -1,6 +1,6 @@
<template> <template>
<div <div
class="sticky top-0 z-10 flex flex-shrink-0 p-4 overflow-x-auto space-x-2 bg-primary hide-scrollbar" class="sticky top-0 z-10 flex flex-shrink-0 p-4 space-x-2 overflow-x-auto bg-primary hide-scrollbar"
> >
<div class="flex flex-1"> <div class="flex flex-1">
<div class="relative flex"> <div class="relative flex">
@@ -33,7 +33,7 @@
</tippy> </tippy>
</label> </label>
</div> </div>
<div class="flex flex-1"> <div class="flex flex-1 border rounded-r border-divider">
<SmartEnvInput <SmartEnvInput
v-model="newEndpoint" v-model="newEndpoint"
:placeholder="`${t('request.url')}`" :placeholder="`${t('request.url')}`"

View File

@@ -150,44 +150,14 @@ watch(editor, () => {
<style lang="scss" scoped> <style lang="scss" scoped>
.env-input-container { .env-input-container {
@apply relative; @apply relative;
@apply inline-flex; @apply flex;
@apply flex-1; @apply flex-1;
@apply bg-red-100; @apply items-center;
@apply border border-red-400;
}
[contenteditable] {
@apply select-text;
@apply text-secondaryDark;
&:empty {
@apply leading-loose;
&::before {
@apply text-secondary;
@apply opacity-35;
@apply pointer-events-none;
content: attr(placeholder);
}
}
} }
.env-input { .env-input {
@apply flex; @apply flex;
@apply items-center; @apply flex-1;
@apply justify-items-start; @apply px-2;
@apply whitespace-nowrap;
@apply overflow-x-auto;
@apply overflow-y-hidden;
@apply resize-none;
@apply focus:outline-none;
@apply bg-green-100;
@apply border border-green-400;
@apply w-full;
}
.env-input::-webkit-scrollbar {
@apply hidden;
} }
</style> </style>