FreeTube/src/renderer/components/ft-profile-bubble/ft-profile-bubble.vue

29 lines
579 B
Vue
Raw Normal View History

2020-08-24 04:56:33 +02:00
<template>
<div
class="bubblePadding"
tabindex="0"
role="button"
:aria-labelledby="sanitizedId"
@click="click"
@keydown.space.enter.prevent="click"
2020-08-24 04:56:33 +02:00
>
<div
class="bubble"
:style="{ background: backgroundColor, color: textColor }"
>
<div class="initial">
2020-08-24 04:56:33 +02:00
{{ profileInitial }}
</div>
2020-08-24 04:56:33 +02:00
</div>
<div
:id="sanitizedId"
class="profileName"
>
{{ translatedProfileName }}
2020-08-24 04:56:33 +02:00
</div>
</div>
</template>
<script src="./ft-profile-bubble.js" />
<style scoped src="./ft-profile-bubble.css" />