EurekaAdapter: remove carriage returns when writing pages; use minimum height for page list and file manager blocks
This commit is contained in:
parent
4333461b75
commit
85fcd94bfa
2 changed files with 6 additions and 2 deletions
|
@ -100,7 +100,7 @@ func (self *EurekaAdapter) GetPage(filename string) Page {
|
||||||
|
|
||||||
return Page{
|
return Page{
|
||||||
Title: title,
|
Title: title,
|
||||||
Content: content,
|
Content: strings.ReplaceAll(content, "\r", ""),
|
||||||
Edited: fileInfo.ModTime(),
|
Edited: fileInfo.ModTime(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -196,7 +196,7 @@ func (self *EurekaAdapter) CreatePage(slug, title, content string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
f.WriteString(content)
|
f.WriteString(strings.ReplaceAll(content, "\r", ""))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -194,6 +194,10 @@ h2 {
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-list {
|
||||||
|
min-height: 5em;
|
||||||
|
}
|
||||||
|
|
||||||
span.adapter-error {
|
span.adapter-error {
|
||||||
border-bottom: 2px solid crimson;
|
border-bottom: 2px solid crimson;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue