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() {
const descriptionHTML = md(removeTags(window.currentDictionary.description));
detailsPanel.innerHTML = descriptionHTML;
document.getElementById('detailsPanel').innerHTML = '<div class="content">' + descriptionHTML + '</div>';
}
export function renderDetails() {

View File

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

View File

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