Fix styling for profileDataItem without label

This commit is contained in:
Yarmo Mackenbach 2020-06-27 21:03:49 +02:00
parent cc3dd6653d
commit 77deed91a6
2 changed files with 8 additions and 5 deletions

View file

@ -194,7 +194,7 @@ async function displayProfile(opts) {
console.log(keyData); console.log(keyData);
// Generate feedback // Generate feedback
feedback += `<div class="profileDataItem profileDataItem--separator">`; feedback += `<div class="profileDataItem profileDataItem--separator profileDataItem--noLabel">`;
feedback += `<div class="profileDataItem__label"></div>`; feedback += `<div class="profileDataItem__label"></div>`;
feedback += `<div class="profileDataItem__value">general information</div>`; feedback += `<div class="profileDataItem__value">general information</div>`;
feedback += `</div>`; feedback += `</div>`;
@ -209,7 +209,7 @@ async function displayProfile(opts) {
feedback += `<div class="profileDataItem__value"><a href="https://keys.openpgp.org/pks/lookup?op=get&options=mr&search=0x${keyData.fingerprint}">${keyData.fingerprint}</a></div>`; feedback += `<div class="profileDataItem__value"><a href="https://keys.openpgp.org/pks/lookup?op=get&options=mr&search=0x${keyData.fingerprint}">${keyData.fingerprint}</a></div>`;
feedback += `</div>`; feedback += `</div>`;
feedback += `<div class="profileDataItem profileDataItem--separator">`; feedback += `<div class="profileDataItem profileDataItem--separator profileDataItem--noLabel">`;
feedback += `<div class="profileDataItem__label"></div>`; feedback += `<div class="profileDataItem__label"></div>`;
feedback += `<div class="profileDataItem__value">proofs</div>`; feedback += `<div class="profileDataItem__value">proofs</div>`;
feedback += `</div>`; feedback += `</div>`;
@ -227,15 +227,15 @@ async function displayProfile(opts) {
feedback += `</div>`; feedback += `</div>`;
} }
feedback += `<div class="profileDataItem profileDataItem--separator">`; feedback += `<div class="profileDataItem profileDataItem--separator profileDataItem--noLabel">`;
feedback += `<div class="profileDataItem__label"></div>`; feedback += `<div class="profileDataItem__label"></div>`;
feedback += `<div class="profileDataItem__value">actions</div>`; feedback += `<div class="profileDataItem__value">actions</div>`;
feedback += `</div>`; feedback += `</div>`;
feedback += `<div class="profileDataItem">`; feedback += `<div class="profileDataItem profileDataItem--noLabel">`;
feedback += `<div class="profileDataItem__label"></div>`; feedback += `<div class="profileDataItem__label"></div>`;
feedback += `<div class="profileDataItem__value"><a href="/verify/${keyData.fingerprint}">verify signature</a></div>`; feedback += `<div class="profileDataItem__value"><a href="/verify/${keyData.fingerprint}">verify signature</a></div>`;
feedback += `</div>`; feedback += `</div>`;
feedback += `<div class="profileDataItem">`; feedback += `<div class="profileDataItem profileDataItem--noLabel">`;
feedback += `<div class="profileDataItem__label"></div>`; feedback += `<div class="profileDataItem__label"></div>`;
feedback += `<div class="profileDataItem__value"><a href="/encrypt/${keyData.fingerprint}">encrypt message</a></div>`; feedback += `<div class="profileDataItem__value"><a href="/encrypt/${keyData.fingerprint}">encrypt message</a></div>`;
feedback += `</div>`; feedback += `</div>`;

View file

@ -166,4 +166,7 @@ a.proofUrl:hover {
.profileDataItem__value { .profileDataItem__value {
min-height: 28px; min-height: 28px;
} }
.profileDataItem--noLabel .profileDataItem__label {
display: none;
}
} }