mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
fix: add LODFallback to markdown widget (#5734)
## Summary Add LOD fallback to markdown widget ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5734-fix-add-LODFallback-to-markdown-widget-2776d73d36508128b923d45beab50f03) by [Unito](https://www.unito.io) --------- Co-authored-by: JakeSchroeder <jake@axiom.co>
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
<!-- Display mode: Rendered markdown -->
|
<!-- Display mode: Rendered markdown -->
|
||||||
<div
|
<div
|
||||||
v-if="!isEditing"
|
v-if="!isEditing"
|
||||||
class="comfy-markdown-content text-xs min-h-[60px] rounded-lg px-4 py-2 overflow-y-auto"
|
class="comfy-markdown-content text-xs min-h-[60px] rounded-lg px-4 py-2 overflow-y-auto lod-toggle"
|
||||||
v-html="renderedHtml"
|
v-html="renderedHtml"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -28,6 +28,7 @@
|
|||||||
@click.stop
|
@click.stop
|
||||||
@keydown.stop
|
@keydown.stop
|
||||||
/>
|
/>
|
||||||
|
<LODFallback />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -39,6 +40,8 @@ import { useStringWidgetValue } from '@/composables/graph/useWidgetValue'
|
|||||||
import type { SimplifiedWidget } from '@/types/simplifiedWidget'
|
import type { SimplifiedWidget } from '@/types/simplifiedWidget'
|
||||||
import { renderMarkdownToHtml } from '@/utils/markdownRendererUtil'
|
import { renderMarkdownToHtml } from '@/utils/markdownRendererUtil'
|
||||||
|
|
||||||
|
import LODFallback from '../../components/LODFallback.vue'
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
widget: SimplifiedWidget<string>
|
widget: SimplifiedWidget<string>
|
||||||
modelValue: string
|
modelValue: string
|
||||||
|
|||||||
Reference in New Issue
Block a user