mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 02:32:18 +00:00
[backport core/1.38] fix: node header on preview has a gap on the right (not flush) (#8555)
Backport of #8487 to `core/1.38` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8555-backport-core-1-38-fix-node-header-on-preview-has-a-gap-on-the-right-not-flush-2fc6d73d365081a1b1cae2afb0675e9a) by [Unito](https://www.unito.io) Co-authored-by: Christian Byrne <cbyrne@comfy.org>
This commit is contained in:
@@ -76,14 +76,6 @@ describe('NodePreview', () => {
|
|||||||
expect(wrapper.find('._sb_preview_badge').text()).toBe('Preview')
|
expect(wrapper.find('._sb_preview_badge').text()).toBe('Preview')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('applies text-ellipsis class to node header for text truncation', () => {
|
|
||||||
const wrapper = mountComponent()
|
|
||||||
const nodeHeader = wrapper.find('.node_header')
|
|
||||||
|
|
||||||
expect(nodeHeader.classes()).toContain('text-ellipsis')
|
|
||||||
expect(nodeHeader.classes()).toContain('mr-4')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('sets title attribute on node header with full display name', () => {
|
it('sets title attribute on node header with full display name', () => {
|
||||||
const wrapper = mountComponent()
|
const wrapper = mountComponent()
|
||||||
const nodeHeader = wrapper.find('.node_header')
|
const nodeHeader = wrapper.find('.node_header')
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ https://github.com/Nuked88/ComfyUI-N-Sidebar/blob/7ae7da4a9761009fb6629bc04c6830
|
|||||||
<div v-else class="_sb_node_preview bg-component-node-background">
|
<div v-else class="_sb_node_preview bg-component-node-background">
|
||||||
<div class="_sb_table">
|
<div class="_sb_table">
|
||||||
<div
|
<div
|
||||||
class="node_header mr-4 text-ellipsis"
|
class="node_header text-ellipsis"
|
||||||
:title="nodeDef.display_name"
|
:title="nodeDef.display_name"
|
||||||
:style="{
|
:style="{
|
||||||
backgroundColor: litegraphColors.NODE_DEFAULT_COLOR,
|
backgroundColor: litegraphColors.NODE_DEFAULT_COLOR,
|
||||||
|
|||||||
Reference in New Issue
Block a user