Fix print CSS

This commit is contained in:
Jan-Lukas Else 2022-04-10 20:26:30 +02:00
parent 80fb177d40
commit b04bf3be46
3 changed files with 4 additions and 7 deletions

View File

@ -292,11 +292,9 @@ details summary {
} }
nav, nav,
#post-actions, .actions,
#tts, #tts,
#related,
#interactions, #interactions,
#posteditactions,
#tor, #tor,
#announcement { #announcement {
display: none; display: none;

View File

@ -246,11 +246,9 @@ details summary > *:first-child {
} }
nav, nav,
#post-actions, .actions,
#tts, #tts,
#related,
#interactions, #interactions,
#posteditactions,
#tor, #tor,
#announcement { #announcement {
display: none; display: none;

3
ui.go
View File

@ -903,6 +903,7 @@ func (a *goBlog) renderPost(hb *htmlBuilder, rd *renderData) {
hb.writeElementClose("button") hb.writeElementClose("button")
hb.writeElementOpen("script", "defer", "", "src", lo.If(p.TTS() != "", a.assetFileName("js/tts.js")).Else(a.assetFileName("js/speak.js"))) hb.writeElementOpen("script", "defer", "", "src", lo.If(p.TTS() != "", a.assetFileName("js/tts.js")).Else(a.assetFileName("js/speak.js")))
hb.writeElementClose("script") hb.writeElementClose("script")
// Close post actions
hb.writeElementClose("div") hb.writeElementClose("div")
// TTS // TTS
if tts := p.TTS(); tts != "" { if tts := p.TTS(); tts != "" {
@ -1031,7 +1032,7 @@ func (a *goBlog) renderStaticHome(hb *htmlBuilder, rd *renderData) {
hb.writeElementClose("main") hb.writeElementClose("main")
// Update // Update
if rd.LoggedIn() { if rd.LoggedIn() {
hb.writeElementOpen("div", "id", "posteditactions") hb.writeElementOpen("div", "class", "actions")
hb.writeElementOpen("form", "method", "post", "action", rd.Blog.RelativePath("/editor")+"#update") hb.writeElementOpen("form", "method", "post", "action", rd.Blog.RelativePath("/editor")+"#update")
hb.writeElementOpen("input", "type", "hidden", "name", "editoraction", "value", "loadupdate") hb.writeElementOpen("input", "type", "hidden", "name", "editoraction", "value", "loadupdate")
hb.writeElementOpen("input", "type", "hidden", "name", "path", "value", p.Path) hb.writeElementOpen("input", "type", "hidden", "name", "path", "value", p.Path)