fix: fix centring of profile modal auto generated pfps
This commit is contained in:
parent
f229a9176c
commit
37a3f2b2e4
1 changed files with 11 additions and 4 deletions
|
@ -1,9 +1,11 @@
|
|||
<template>
|
||||
<div :style="`background-color: ${generateIrcColor(seed, 50)}`"
|
||||
class="default-icon">
|
||||
<span class="default-icon-text">
|
||||
{{ previewName }}
|
||||
</span>
|
||||
<div class="default-icon-text-container">
|
||||
<span class="default-icon-text">
|
||||
{{ previewName }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -31,12 +33,17 @@ if (props.name.length > 3) {
|
|||
</script>
|
||||
|
||||
<style scoped>
|
||||
.default-icon {
|
||||
.default-icon, .default-icon-text-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.default-icon-text-container {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.default-icon-text {
|
||||
/* helps centre the icon, yes, this is NOT perfect */
|
||||
margin-top: -0.15em;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue