fix: fix centring of profile modal auto generated pfps
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
ci/woodpecker/pull_request_closed/build-and-publish Pipeline was successful

This commit is contained in:
Twig 2025-08-04 21:18:52 +02:00
parent f229a9176c
commit 37a3f2b2e4
Signed by: twig
SSH key fingerprint: SHA256:nBO+OwpTkd8LYhe38PIqdxmDvkIg9Vw2EbrRZM97dkU

View file

@ -1,9 +1,11 @@
<template> <template>
<div :style="`background-color: ${generateIrcColor(seed, 50)}`" <div :style="`background-color: ${generateIrcColor(seed, 50)}`"
class="default-icon"> class="default-icon">
<span class="default-icon-text"> <div class="default-icon-text-container">
{{ previewName }} <span class="default-icon-text">
</span> {{ previewName }}
</span>
</div>
</div> </div>
</template> </template>
@ -31,12 +33,17 @@ if (props.name.length > 3) {
</script> </script>
<style scoped> <style scoped>
.default-icon { .default-icon, .default-icon-text-container {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.default-icon-text-container {
height: 100%;
width: 100%;
}
.default-icon-text { .default-icon-text {
/* helps centre the icon, yes, this is NOT perfect */ /* helps centre the icon, yes, this is NOT perfect */
margin-top: -0.15em; margin-top: -0.15em;