shorten height if no description
This commit is contained in:
parent
6720921c49
commit
f1f685e7ac
1 changed files with 10 additions and 2 deletions
12
index.html
12
index.html
|
@ -60,7 +60,6 @@
|
|||
left: 0;
|
||||
right: 0;
|
||||
margin: auto;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
#mainContainer.vertical {
|
||||
|
@ -605,9 +604,15 @@
|
|||
/* description */
|
||||
|
||||
#description {
|
||||
display: none;
|
||||
padding: 8px;
|
||||
margin-top: 24px;
|
||||
word-break: break-word;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
#description.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
|
@ -800,7 +805,10 @@
|
|||
}
|
||||
}
|
||||
function updateDescription(description){
|
||||
if(description !== undefined){
|
||||
if(description === undefined || description === ''){
|
||||
descriptionEl.classList.remove('active');
|
||||
} else {
|
||||
descriptionEl.classList.add('active');
|
||||
config.description = description;
|
||||
descriptionEl.innerHTML = description;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue