mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-01 19:51:54 +00:00
## Summary The current help / feedback is often overlooked by users, this adds a setting that makes it more visible moving it up into the tab bar and moves the user login/profile button out of the "action bar" into the tab bar. ## Changes - Add 'Comfy.UI.TabBarLayout' setting with Default/Integrated options - Move Help & User controls to tab bar when Integrated mode is enabled - Extract help center logic into shared useHelpCenter composable ## Screenshots (if applicable) <img width="515" height="540" alt="image" src="https://github.com/user-attachments/assets/c9e6057f-4fb1-4da6-b25d-9df4b19be31a" /> <img width="835" height="268" alt="image" src="https://github.com/user-attachments/assets/24afc0e8-97eb-45cf-af86-15a9b464e9a8" /> ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7853-Integrated-tab-bar-UI-elements-2df6d73d365081b1beb8f7c641c2fa43) by [Unito](https://www.unito.io) --------- Co-authored-by: GitHub Action <action@github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
45 lines
854 B
Vue
45 lines
854 B
Vue
<template>
|
|
<SidebarIcon
|
|
icon="pi pi-question-circle"
|
|
class="comfy-help-center-btn"
|
|
:label="$t('menu.help')"
|
|
:tooltip="$t('sideToolbar.helpCenter')"
|
|
:icon-badge="shouldShowRedDot ? '•' : ''"
|
|
:is-small="isSmall"
|
|
@click="toggleHelpCenter"
|
|
/>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { useHelpCenter } from '@/composables/useHelpCenter'
|
|
|
|
import SidebarIcon from './SidebarIcon.vue'
|
|
|
|
defineProps<{
|
|
isSmall: boolean
|
|
}>()
|
|
|
|
const { shouldShowRedDot, toggleHelpCenter } = useHelpCenter()
|
|
</script>
|
|
|
|
<style scoped>
|
|
:deep(.p-badge) {
|
|
background: #ff3b30;
|
|
color: #ff3b30;
|
|
min-width: 8px;
|
|
height: 8px;
|
|
padding: 0;
|
|
border-radius: 9999px;
|
|
font-size: 0;
|
|
margin-top: 4px;
|
|
margin-right: 4px;
|
|
border: none;
|
|
outline: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
:deep(.p-badge.p-badge-dot) {
|
|
width: 8px !important;
|
|
}
|
|
</style>
|