Skip to content

Commit

Permalink
Enhance AcknowledgmentsDialog styling and image handling
Browse files Browse the repository at this point in the history
- Added 'markdown-body' class to the vue-markdown component for improved styling.
- Introduced CSS rules to ensure images within the markdown are responsive, with a maximum width of 500px.
  • Loading branch information
sjoerdbeentjes committed Dec 10, 2024
1 parent ea05fe9 commit fa979d2
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</v-app-bar>

<v-divider />
<vue-markdown class="px-4 py-5 flex-grow-1 overflow-y-auto justify-center" :source="acknowledgments" />
<vue-markdown class="px-4 py-5 flex-grow-1 overflow-y-auto justify-center markdown-body" :source="acknowledgments" />
<!-- <div class="px-4 py-5 flex-grow-1 overflow-y-auto justify-center" v-html="acknowledgments" /> -->
</v-card>
</v-dialog>
Expand Down Expand Up @@ -57,4 +57,10 @@
</script>

<style>
/* make image max 300 width */
.markdown-body img {
width: 100%;
max-width: 500px;
}
</style>

0 comments on commit fa979d2

Please sign in to comment.