Skip to content

Commit

Permalink
fix(SelectSkillButtons): fix text overlow
Browse files Browse the repository at this point in the history
  • Loading branch information
rudnovd committed Mar 29, 2022
1 parent 1df1810 commit f74b1a2
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/components/damageCalculator/SelectSkillButtons.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<div class="select-skill-buttons">
<span class="skill-name" :class="`color-${color}`">{{ name }}</span>
<div class="skill-name" :class="`color-${color}`">
<span>{{ name }}</span>
</div>
<div class="skill-buttons" :class="`color-${color}`">
<button
v-for="level in levels"
Expand Down Expand Up @@ -62,7 +64,7 @@ export default defineComponent({
<style lang="scss" scoped>
.select-skill-buttons {
display: grid;
grid-template-columns: 1fr 3fr;
grid-template-columns: 75px 1fr;
align-items: center;
}
Expand All @@ -71,12 +73,14 @@ export default defineComponent({
align-items: center;
justify-content: center;
height: 1.5rem;
padding-right: 8px;
overflow: hidden;
font-size: 0.8rem;
font-weight: 600;
text-overflow: ellipsis;
white-space: nowrap;
& > span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.skill-buttons {
Expand Down

0 comments on commit f74b1a2

Please sign in to comment.