Skip to content

Commit

Permalink
fix: #232 wrap text fields for from and to fields for sold and purcha…
Browse files Browse the repository at this point in the history
…sed.
  • Loading branch information
tankerkiller125 committed Oct 4, 2024
1 parent da8cc19 commit 9d3f3cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions backend/internal/data/repo/repo_items.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ type (

// Purchase
PurchaseTime types.Date `json:"purchaseTime"`
PurchaseFrom string `json:"purchaseFrom"`
PurchaseFrom string `json:"purchaseFrom" validate:"max=255"`
PurchasePrice float64 `json:"purchasePrice,string"`

// Sold
SoldTime types.Date `json:"soldTime"`
SoldTo string `json:"soldTo"`
SoldTo string `json:"soldTo" validate:"max=255"`
SoldPrice float64 `json:"soldPrice,string"`
SoldNotes string `json:"soldNotes"`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</ClientOnly>
</template>
<template v-else>
<span class="flex items-center">
<span class="flex items-center text-wrap">
{{ detail.text }}
<span
v-if="detail.copyable"
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/global/Markdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</script>

<template>
<div class="markdown" v-html="raw"></div>
<div class="markdown text-wrap" v-html="raw"></div>
</template>

<style scoped>
Expand Down

0 comments on commit 9d3f3cf

Please sign in to comment.