Skip to content

Commit

Permalink
chore(css): max-width overflow guard
Browse files Browse the repository at this point in the history
  • Loading branch information
mihai-peteu committed Sep 22, 2022
1 parent 820a4c4 commit 63ddc35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/KDateTimePicker/KDateTimePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ export default defineComponent({
// Determine whether to display a formatting time range, or a single value in input field
if (props.range) {
return htmlFormat
? `<div>${format(start, fmtStr)} -</div>&nbsp;<div>${format(end, fmtStr)}</div>`
? `<div>${format(start, fmtStr)} -&nbsp;</div><div>${format(end, fmtStr)}</div>`
: `${format(start, fmtStr)} - ${format(end, fmtStr)}`
} else if (start) {
return `${format(start, fmtStr)}`
Expand Down Expand Up @@ -509,6 +509,7 @@ $margin: 6px;
padding: var(--spacing-sm) var(--spacing-sm) !important;
color: var(--grey-600) !important;
font-weight: 500;
max-width: 100%; // Prevent overflowing the container
&.set-min-width {
min-width: $timepicker-min-width;
}
Expand All @@ -522,7 +523,7 @@ $margin: 6px;
text-align: left;
padding: 0;
margin: 0;
line-height: var(--type-md, type(md));
line-height: 1.3;
white-space: nowrap;
}
}
Expand Down

0 comments on commit 63ddc35

Please sign in to comment.