Skip to content

Commit 124f775

Browse files
Provide enough space for the DragActivityTabControl widget (BL-14614)
1 parent 6a0e5c7 commit 124f775

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

src/BloomBrowserUI/bookEdit/css/editMode.less

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,6 +1303,14 @@ body.hideAllCKEditors .cke_chrome {
13031303
top: -8px;
13041304
width: 100%;
13051305
}
1306+
// Very narrow pages need more space for the #drag-activity-tab-control
1307+
.above-page-control-container:has(+ .Device16x9Portrait),
1308+
.above-page-control-container:has(+ .QuarterLetterPortrait),
1309+
.above-page-control-container:has(+ .A6Portrait) {
1310+
#drag-activity-tab-control {
1311+
top: -22px;
1312+
}
1313+
}
13061314

13071315
// we want :blank, but it's not in browsers yet. So we simulate it by a mutation observer
13081316
// that adds a class to the editable when it is empty.

src/BloomBrowserUI/bookEdit/toolbox/games/DragActivityTabControl.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ export const DragActivityTabControl: React.FunctionComponent<{
6161
`}
6262
>
6363
{promptButtonContent && (
64-
<div>
64+
<div
65+
css={css`
66+
margin-right: 20px;
67+
`}
68+
>
6569
{/* // This button is only visible in start mode. I'd prefer
6670
to control that here but it's difficult. visibility
6771
is controlled with #promptButton rules in editMode.less. */}

0 commit comments

Comments
 (0)