chore: minor ui improvements
This commit is contained in:
@@ -135,7 +135,7 @@ a {
|
|||||||
@apply rounded;
|
@apply rounded;
|
||||||
@apply truncate;
|
@apply truncate;
|
||||||
@apply shadow;
|
@apply shadow;
|
||||||
@apply leading-body;
|
@apply leading-normal;
|
||||||
@apply items-center;
|
@apply items-center;
|
||||||
font-size: 86%;
|
font-size: 86%;
|
||||||
|
|
||||||
@@ -172,7 +172,7 @@ a {
|
|||||||
@apply text-secondary text-body;
|
@apply text-secondary text-body;
|
||||||
@apply p-2;
|
@apply p-2;
|
||||||
@apply shadow-lg;
|
@apply shadow-lg;
|
||||||
@apply leading-body;
|
@apply leading-normal;
|
||||||
@apply border border-dividerDark;
|
@apply border border-dividerDark;
|
||||||
@apply focus: outline-none;
|
@apply focus: outline-none;
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
:info-icon="
|
:info-icon="
|
||||||
team.id === collectionsType.selectedTeam?.id
|
team.id === collectionsType.selectedTeam?.id
|
||||||
? IconDone
|
? IconDone
|
||||||
: null
|
: undefined
|
||||||
"
|
"
|
||||||
:active-info-icon="
|
:active-info-icon="
|
||||||
team.id === collectionsType.selectedTeam?.id
|
team.id === collectionsType.selectedTeam?.id
|
||||||
|
|||||||
@@ -19,8 +19,8 @@
|
|||||||
interactive
|
interactive
|
||||||
trigger="click"
|
trigger="click"
|
||||||
theme="popover"
|
theme="popover"
|
||||||
arrow
|
|
||||||
placement="bottom"
|
placement="bottom"
|
||||||
|
:on-shown="() => tippyActions.focus()"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
@@ -41,9 +41,9 @@
|
|||||||
</span>
|
</span>
|
||||||
<template #content="{ hide }">
|
<template #content="{ hide }">
|
||||||
<div
|
<div
|
||||||
class="flex flex-col"
|
ref="tippyActions"
|
||||||
|
class="flex flex-col focus:outline-none"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
role="menu"
|
|
||||||
@keyup.escape="hide()"
|
@keyup.escape="hide()"
|
||||||
>
|
>
|
||||||
<SmartItem
|
<SmartItem
|
||||||
@@ -93,6 +93,8 @@ type SelectedTeam = Team | undefined
|
|||||||
|
|
||||||
type EnvironmentTabs = "my-environments" | "team-environments"
|
type EnvironmentTabs = "my-environments" | "team-environments"
|
||||||
|
|
||||||
|
// Template refs
|
||||||
|
const tippyActions = ref<any | null>(null)
|
||||||
const selectedEnvironmentTab = ref<EnvironmentTabs>("my-environments")
|
const selectedEnvironmentTab = ref<EnvironmentTabs>("my-environments")
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
|
|||||||
@@ -101,7 +101,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="flex">
|
<span class="flex space-x-2">
|
||||||
<ButtonPrimary
|
<ButtonPrimary
|
||||||
:label="`${t('action.save')}`"
|
:label="`${t('action.save')}`"
|
||||||
@click="saveEnvironment"
|
@click="saveEnvironment"
|
||||||
|
|||||||
@@ -113,7 +113,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="!isViewer" #footer>
|
<template v-if="!isViewer" #footer>
|
||||||
<span>
|
<span class="flex space-x-2">
|
||||||
<ButtonPrimary
|
<ButtonPrimary
|
||||||
:label="`${t('action.save')}`"
|
:label="`${t('action.save')}`"
|
||||||
:loading="isLoading"
|
:loading="isLoading"
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ const cursorTooltipField = (aggregateEnvs: AggregateEnvironment[]) =>
|
|||||||
|
|
||||||
const selectedEnvType = getSelectedEnvironmentType()
|
const selectedEnvType = getSelectedEnvironmentType()
|
||||||
|
|
||||||
const envTypeIcon = `<i class="material-icons inline-flex items-center">${
|
const envTypeIcon = `<i class="inline-flex items-center pr-2 mr-2 -my-1 text-base border-r material-icons border-secondary">${
|
||||||
selectedEnvType === "TEAM_ENV" ? "people" : "person"
|
selectedEnvType === "TEAM_ENV" ? "people" : "person"
|
||||||
}</i>`
|
}</i>`
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user