Skip to content

Commit dbaf55f

Browse files
authored
Fix the bubble overlay editor with long text (#942)
1 parent 3023a7c commit dbaf55f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

packages/core/src/data-editor/stories/utils.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,14 @@ Try out [Glide](https://www.glideapps.com/)
730730
getContent: () => {
731731
return {
732732
kind: GridCellKind.Bubble,
733-
data: [faker.lorem.word(), faker.lorem.word(), faker.lorem.word()],
733+
data: [
734+
faker.lorem.word(),
735+
faker.lorem.word(),
736+
faker.lorem.word(),
737+
faker.lorem.words(2),
738+
faker.lorem.words(2),
739+
faker.lorem.words(2),
740+
],
734741
allowOverlay: true,
735742
};
736743
},

packages/core/src/internal/data-grid-overlay-editor/private/bubbles-overlay-editor-style.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export const BubblesOverlayEditorStyle = styled.div`
77
flex-wrap: wrap;
88
margin-top: auto;
99
margin-bottom: auto;
10+
overflow: auto;
1011
1112
.boe-bubble {
1213
display: flex;
@@ -20,6 +21,7 @@ export const BubblesOverlayEditorStyle = styled.div`
2021
background-color: var(--gdg-bg-bubble);
2122
color: var(--gdg-text-dark);
2223
margin: 2px;
24+
white-space: nowrap;
2325
}
2426
2527
textarea {

0 commit comments

Comments
 (0)