Browse Source

Fix print CSS

master
Jan-Lukas Else 3 months ago
parent
commit
b04bf3be46
  1. 4
      original-assets/styles/styles.scss
  2. 4
      templates/assets/css/styles.css
  3. 3
      ui.go

4
original-assets/styles/styles.scss

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

4
templates/assets/css/styles.css

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

3
ui.go

@ -903,6 +903,7 @@ func (a *goBlog) renderPost(hb *htmlBuilder, rd *renderData) {
hb.writeElementClose("button")
hb.writeElementOpen("script", "defer", "", "src", lo.If(p.TTS() != "", a.assetFileName("js/tts.js")).Else(a.assetFileName("js/speak.js")))
hb.writeElementClose("script")
// Close post actions
hb.writeElementClose("div")
// TTS
if tts := p.TTS(); tts != "" {
@ -1031,7 +1032,7 @@ func (a *goBlog) renderStaticHome(hb *htmlBuilder, rd *renderData) {
hb.writeElementClose("main")
// Update
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("input", "type", "hidden", "name", "editoraction", "value", "loadupdate")
hb.writeElementOpen("input", "type", "hidden", "name", "path", "value", p.Path)

Loading…
Cancel
Save