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:
Simula_r
2025-09-23 13:05:15 -07:00
committed by GitHub
parent c6e50d8f1b
commit e4022c455a

View File

@@ -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