Fix rendering of content

This commit is contained in:
Robbie Antenesse 2019-05-08 16:37:52 -06:00
parent befa0fba95
commit 83ec6665e9
3 changed files with 7 additions and 2 deletions

View File

@ -32,7 +32,7 @@ export function renderName() {
export function renderDescription() { export function renderDescription() {
const descriptionHTML = md(removeTags(window.currentDictionary.description)); const descriptionHTML = md(removeTags(window.currentDictionary.description));
detailsPanel.innerHTML = descriptionHTML; document.getElementById('detailsPanel').innerHTML = '<div class="content">' + descriptionHTML + '</div>';
} }
export function renderDetails() { export function renderDetails() {

View File

@ -40,6 +40,10 @@ label {
} }
} }
ul {
padding-left: $general-padding;
}
.tag { .tag {
display: inline-block; display: inline-block;
padding: 3px 9px; padding: 3px 9px;

View File

@ -149,7 +149,8 @@
max-height: 400px; max-height: 400px;
overflow-y: auto; overflow-y: auto;
h3 { &:not(.content) h3,
*:not(.content) h3 {
margin-top: 0; margin-top: 0;
} }
} }