8000 text-wrap for pre element by molon · Pull Request #697 · qor5/admin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

text-wrap for pre element #697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion activity/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ func setupDetailing(dp *presets.DetailingBuilder, op *gorm2op.DataOperatorBuilde
),
VCardText().Class("mt-3 pa-3 border-thin rounded").Children(
h.Div().Class("d-flex flex-column").Children(
h.Pre(note.Note).Attr("v-pre", true).Class("text-body-2"),
h.Pre(note.Note).Attr("v-pre", true).Class("text-body-2 text-wrap"),
h.Iff(!note.LastEditedAt.IsZero(), func() h.HTMLComponent {
return h.Div().Class("text-caption font-italic").Style("color: #757575").Children(
h.Text(msgr.LastEditedAt(pmsgr.HumanizeTime(note.LastEditedAt))),
Expand Down
2 changes: 1 addition & 1 deletion activity/timeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (c *TimelineCompo) humanContent(ctx context.Context, log *ActivityLog) h.HT
return h.Components(
h.Div().Attr("v-if", "!xlocals.showEditBox").Class("d-flex flex-column").Children(
h.Div(h.Text(msgr.AddedANote)),
h.Pre(note.Note).Attr("v-pre", true).Class("text-body-2"),
h.Pre(note.Note).Attr("v-pre", true).Class("text-body-2 text-wrap"),
h.Iff(!note.LastEditedAt.IsZero(), func() h.HTMLComponent {
return h.Div().Class("text-caption font-italic").Class("text-grey-darken-1").Children(
h.Text(msgr.LastEditedAt(pmsgr.HumanizeTime(note.LastEditedAt))),
Expand Down
2 changes: 1 addition & 1 deletion publish/status_compo.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func liveFunc(db *gorm.DB) presets.FieldComponentFunc {
compo = h.Div().Class("d-flex").Children(
h.Div().Children(
VTooltip().Activator("parent").Location(LocationTop).Children(
h.Pre(tooltip).Attr("v-pre", true).Class("text-body-2"),
h.Pre(tooltip).Attr("v-pre", true).Class("text-body-2 text-wrap"),
),
compo,
),
Expand Down
Loading
0