fix: placeholder size and text overflow on tab head (#3261)
This commit is contained in:
@@ -221,6 +221,7 @@ a {
|
|||||||
|
|
||||||
[data-v-tippy] {
|
[data-v-tippy] {
|
||||||
@apply flex flex-1;
|
@apply flex flex-1;
|
||||||
|
@apply truncate;
|
||||||
}
|
}
|
||||||
|
|
||||||
[interactive] > div {
|
[interactive] > div {
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ declare module '@vue/runtime-core' {
|
|||||||
HoppSmartSpinner: typeof import('@hoppscotch/ui')['HoppSmartSpinner']
|
HoppSmartSpinner: typeof import('@hoppscotch/ui')['HoppSmartSpinner']
|
||||||
HoppSmartTab: typeof import('@hoppscotch/ui')['HoppSmartTab']
|
HoppSmartTab: typeof import('@hoppscotch/ui')['HoppSmartTab']
|
||||||
HoppSmartTabs: typeof import('@hoppscotch/ui')['HoppSmartTabs']
|
HoppSmartTabs: typeof import('@hoppscotch/ui')['HoppSmartTabs']
|
||||||
|
HoppSmartToggle: typeof import('@hoppscotch/ui')['HoppSmartToggle']
|
||||||
HoppSmartWindow: typeof import('@hoppscotch/ui')['HoppSmartWindow']
|
HoppSmartWindow: typeof import('@hoppscotch/ui')['HoppSmartWindow']
|
||||||
HoppSmartWindows: typeof import('@hoppscotch/ui')['HoppSmartWindows']
|
HoppSmartWindows: typeof import('@hoppscotch/ui')['HoppSmartWindows']
|
||||||
HttpAuthorization: typeof import('./components/http/Authorization.vue')['default']
|
HttpAuthorization: typeof import('./components/http/Authorization.vue')['default']
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
<div
|
<div
|
||||||
v-for="(inspector, index) in inspectionResults"
|
v-for="(inspector, index) in inspectionResults"
|
||||||
:key="index"
|
:key="index"
|
||||||
class="flex self-stretch"
|
class="flex self-stretch max-w-md w-full"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="flex flex-col flex-1 rounded border border-dashed border-dividerDark divide-y divide-dashed divide-dividerDark"
|
class="flex flex-col flex-1 rounded border border-dashed border-dividerDark divide-y divide-dashed divide-dividerDark"
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
:alt="`${t('error.network_fail')}`"
|
:alt="`${t('error.network_fail')}`"
|
||||||
:heading="t('error.network_fail')"
|
:heading="t('error.network_fail')"
|
||||||
:text="t('helpers.network_fail')"
|
:text="t('helpers.network_fail')"
|
||||||
|
large
|
||||||
>
|
>
|
||||||
<AppInterceptor class="p-2 border rounded border-dividerLight" />
|
<AppInterceptor class="p-2 border rounded border-dividerLight" />
|
||||||
</HoppSmartPlaceholder>
|
</HoppSmartPlaceholder>
|
||||||
@@ -26,6 +27,7 @@
|
|||||||
:alt="`${t('error.script_fail')}`"
|
:alt="`${t('error.script_fail')}`"
|
||||||
:label="t('error.script_fail')"
|
:label="t('error.script_fail')"
|
||||||
:text="t('helpers.script_fail')"
|
:text="t('helpers.script_fail')"
|
||||||
|
large
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="mt-2 w-full px-4 py-2 overflow-auto font-mono text-red-400 whitespace-normal rounded bg-primaryLight"
|
class="mt-2 w-full px-4 py-2 overflow-auto font-mono text-red-400 whitespace-normal rounded bg-primaryLight"
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
theme="popover"
|
theme="popover"
|
||||||
:on-shown="() => tippyActions!.focus()"
|
:on-shown="() => tippyActions!.focus()"
|
||||||
>
|
>
|
||||||
<span class="leading-8 px-2">
|
<span class="leading-8 px-2 truncate">
|
||||||
{{ tab.document.request.name }}
|
{{ tab.document.request.name }}
|
||||||
</span>
|
</span>
|
||||||
<template #content="{ hide }">
|
<template #content="{ hide }">
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="autocomplete-wrapper">
|
<div class="autocomplete-wrapper">
|
||||||
<div class="absolute inset-0 flex flex-1 overflow-x-auto">
|
<div
|
||||||
|
class="absolute inset-0 flex flex-1 divide-x divide-dividerLight overflow-x-auto"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
ref="editor"
|
ref="editor"
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
@@ -10,7 +12,10 @@
|
|||||||
@keydown="handleKeystroke"
|
@keydown="handleKeystroke"
|
||||||
@focusin="showSuggestionPopover = true"
|
@focusin="showSuggestionPopover = true"
|
||||||
></div>
|
></div>
|
||||||
<AppInspection :inspection-results="inspectionResults" />
|
<AppInspection
|
||||||
|
:inspection-results="inspectionResults"
|
||||||
|
class="sticky inset-y-0 right-0 bg-primary rounded-r"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<ul
|
<ul
|
||||||
v-if="showSuggestionPopover && autoCompleteSource"
|
v-if="showSuggestionPopover && autoCompleteSource"
|
||||||
|
|||||||
@@ -71,9 +71,9 @@ const cursorTooltipField = (aggregateEnvs: AggregateEnvironment[]) =>
|
|||||||
|
|
||||||
const selectedEnvType = getSelectedEnvironmentType()
|
const selectedEnvType = getSelectedEnvironmentType()
|
||||||
|
|
||||||
const envTypeIcon = `<i class="inline-flex -my-1 -mx-0.5 opacity-65 items-center text-base material-icons border-secondary">${
|
const envTypeIcon = `<span class="inline-flex -my-2 -mx-0.5 opacity-65 items-center text-base font-icon">${
|
||||||
selectedEnvType === "TEAM_ENV" ? "people" : "person"
|
selectedEnvType === "TEAM_ENV" ? "group" : "person"
|
||||||
}</i>`
|
}</span>`
|
||||||
|
|
||||||
const appendEditAction = (tooltip: HTMLElement) => {
|
const appendEditAction = (tooltip: HTMLElement) => {
|
||||||
const editIcon = document.createElement("span")
|
const editIcon = document.createElement("span")
|
||||||
@@ -88,7 +88,7 @@ const cursorTooltipField = (aggregateEnvs: AggregateEnvironment[]) =>
|
|||||||
variableName: parsedEnvKey,
|
variableName: parsedEnvKey,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
editIcon.innerHTML = `<i class="inline-flex items-center px-1 -mx-1 -my-1 text-base material-icons border-secondary">drive_file_rename_outline</i>`
|
editIcon.innerHTML = `<span class="inline-flex items-center px-1 -mx-1 -my-2 text-base font-icon">edit</span>`
|
||||||
tooltip.appendChild(editIcon)
|
tooltip.appendChild(editIcon)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -221,6 +221,7 @@ a {
|
|||||||
|
|
||||||
[data-v-tippy] {
|
[data-v-tippy] {
|
||||||
@apply flex flex-1;
|
@apply flex flex-1;
|
||||||
|
@apply truncate;
|
||||||
}
|
}
|
||||||
|
|
||||||
[interactive] > div {
|
[interactive] > div {
|
||||||
|
|||||||
@@ -221,6 +221,7 @@ a {
|
|||||||
|
|
||||||
[data-v-tippy] {
|
[data-v-tippy] {
|
||||||
@apply flex flex-1;
|
@apply flex flex-1;
|
||||||
|
@apply truncate;
|
||||||
}
|
}
|
||||||
|
|
||||||
[interactive] > div {
|
[interactive] > div {
|
||||||
|
|||||||
@@ -4,22 +4,19 @@
|
|||||||
v-if="src"
|
v-if="src"
|
||||||
:src="src"
|
:src="src"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
class="inline-flex flex-col object-contain object-center w-16 h-16 mb-4"
|
class="inline-flex flex-col object-contain object-center my-4"
|
||||||
|
:class="large ? 'w-32 h-32' : 'w-16 h-16'"
|
||||||
:alt="alt"
|
:alt="alt"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<slot name="icon"></slot>
|
<slot name="icon"></slot>
|
||||||
|
|
||||||
<span v-if="heading" class="mb-2 font-semibold text-center">
|
<span v-if="heading" class="mb-2 font-semibold text-center">
|
||||||
{{ heading }}
|
{{ heading }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span
|
<span
|
||||||
class="max-w-sm mb-4 text-center whitespace-normal text-secondaryLight"
|
class="max-w-sm mb-4 text-center whitespace-normal text-secondaryLight"
|
||||||
>
|
>
|
||||||
{{ text }}
|
{{ text }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -31,6 +28,7 @@ withDefaults(
|
|||||||
alt?: string
|
alt?: string
|
||||||
heading?: string
|
heading?: string
|
||||||
text?: string
|
text?: string
|
||||||
|
large?: boolean
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
alt: "",
|
alt: "",
|
||||||
|
|||||||
Reference in New Issue
Block a user