mirror of
https://github.com/glanceapp/glance.git
synced 2025-06-21 18:31:24 +02:00
Preserve formatting of non-html extension widget content
This commit is contained in:
parent
495eaa0a37
commit
f89fc2ee1d
@ -273,6 +273,10 @@
|
|||||||
background-color: var(--color-separator);
|
background-color: var(--color-separator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
font: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
::selection {
|
::selection {
|
||||||
background-color: hsl(var(--bghs), calc(var(--scheme) (var(--scheme) var(--bgl) + 20%)));
|
background-color: hsl(var(--bghs), calc(var(--scheme) (var(--scheme) var(--bgl) + 20%)));
|
||||||
color: var(--color-text-highlight);
|
color: var(--color-text-highlight);
|
||||||
|
@ -103,7 +103,7 @@ func convertExtensionContent(options extensionRequestOptions, content []byte, co
|
|||||||
|
|
||||||
fallthrough
|
fallthrough
|
||||||
default:
|
default:
|
||||||
return template.HTML(html.EscapeString(string(content)))
|
return template.HTML("<pre>" + html.EscapeString(string(content)) + "</pre>")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user