We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dfd899 commit daefaedCopy full SHA for daefaed
packages/vkui/src/components/Tooltip/useTooltip.tsx
@@ -175,7 +175,7 @@ export const useTooltip = ({
175
customMiddlewares: [
176
sizeMiddleware({
177
apply({ rects, elements, availableWidth }) {
178
- const width = Math.min(Math.round(rects.floating.width), Math.floor(availableWidth));
+ const width = Math.min(Math.ceil(rects.floating.width), Math.floor(availableWidth));
179
Object.assign(elements.floating.style, {
180
width: `${width}px`,
181
});
0 commit comments