mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-03 12:10:11 +00:00
Categorize setting items (#338)
* Basic setting panel rework * refactor * Style the setting item * Reject invalid value * nit * nit * Sort settings by label * info chip as icon * nit
This commit is contained in:
24
src/components/dialog/header/SettingDialogHeader.vue
Normal file
24
src/components/dialog/header/SettingDialogHeader.vue
Normal file
@@ -0,0 +1,24 @@
|
||||
<template>
|
||||
<div>
|
||||
<h2>
|
||||
<i class="pi pi-cog"></i>
|
||||
<span>Settings</span>
|
||||
<Tag :value="frontendVersion" severity="secondary" class="version-tag" />
|
||||
</h2>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import Tag from 'primevue/tag'
|
||||
const frontendVersion = 'v' + window['__COMFYUI_FRONTEND_VERSION__']
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.pi-cog {
|
||||
font-size: 1.25rem;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
.version-tag {
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user