Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#6754 truncatefy fix #6830

Merged
merged 10 commits into from
May 19, 2020
19 changes: 11 additions & 8 deletions packages/kolibri-components/src/KRadioButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
/>

<span class="text" dir="auto">
{{ label }}
<span
<div class="truncate-text">{{ label }}</div>
<div
v-if="description"
class="description"
:style="[{ color: disabled ? '' : $themeTokens.annotation }, disabledStyle ]"
>
{{ description }}
</span>
</div>
<slot></slot>
</span>

Expand Down Expand Up @@ -188,17 +188,20 @@
height: $radio-height;
}

.text,
.description {
display: inline-block;
}
.text {
display: inline-block;
max-width: calc(100% - #{$radio-height});
padding-left: 8px;
line-height: $radio-height;
}

.truncate-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.description {
width: 100%;
font-size: 12px;
line-height: normal;
}
Expand Down