diff --git a/packages/decap-cms-core/src/components/Editor/EditorToolbar.js b/packages/decap-cms-core/src/components/Editor/EditorToolbar.js index a250a88d5730..e909e93055b1 100644 --- a/packages/decap-cms-core/src/components/Editor/EditorToolbar.js +++ b/packages/decap-cms-core/src/components/Editor/EditorToolbar.js @@ -85,7 +85,7 @@ const DropdownButton = styled(StyledDropdownButton)` const ToolbarContainer = styled.div` box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05), 0 1px 3px 0 rgba(68, 74, 87, 0.1), 0 2px 54px rgba(0, 0, 0, 0.1); - position: fixed; + position: absolute; top: 0; left: 0; width: 100%; diff --git a/packages/decap-cms-core/src/components/Editor/__tests__/__snapshots__/EditorToolbar.spec.js.snap b/packages/decap-cms-core/src/components/Editor/__tests__/__snapshots__/EditorToolbar.spec.js.snap index a70e21947f5e..280f49d0e045 100644 --- a/packages/decap-cms-core/src/components/Editor/__tests__/__snapshots__/EditorToolbar.spec.js.snap +++ b/packages/decap-cms-core/src/components/Editor/__tests__/__snapshots__/EditorToolbar.spec.js.snap @@ -4,7 +4,7 @@ exports[`EditorToolbar should render normal save button 1`] = ` .emotion-0 { box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1); - position: fixed; + position: absolute; top: 0; left: 0; width: 100%; @@ -260,7 +260,7 @@ exports[`EditorToolbar should render normal save button 2`] = ` .emotion-0 { box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1); - position: fixed; + position: absolute; top: 0; left: 0; width: 100%; @@ -516,7 +516,7 @@ exports[`EditorToolbar should render with default props 1`] = ` .emotion-0 { box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1); - position: fixed; + position: absolute; top: 0; left: 0; width: 100%; @@ -731,7 +731,7 @@ exports[`EditorToolbar should render with status=draft,useOpenAuthoring=false 1` .emotion-0 { box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1); - position: fixed; + position: absolute; top: 0; left: 0; width: 100%; @@ -1021,7 +1021,7 @@ exports[`EditorToolbar should render with status=draft,useOpenAuthoring=true 1`] .emotion-0 { box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1); - position: fixed; + position: absolute; top: 0; left: 0; width: 100%; @@ -1372,7 +1372,7 @@ exports[`EditorToolbar should render with status=pending_publish,useOpenAuthorin .emotion-0 { box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1); - position: fixed; + position: absolute; top: 0; left: 0; width: 100%; @@ -1662,7 +1662,7 @@ exports[`EditorToolbar should render with status=pending_publish,useOpenAuthorin .emotion-0 { box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1); - position: fixed; + position: absolute; top: 0; left: 0; width: 100%; @@ -1990,7 +1990,7 @@ exports[`EditorToolbar should render with status=pending_review,useOpenAuthoring .emotion-0 { box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1); - position: fixed; + position: absolute; top: 0; left: 0; width: 100%; @@ -2280,7 +2280,7 @@ exports[`EditorToolbar should render with status=pending_review,useOpenAuthoring .emotion-0 { box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1); - position: fixed; + position: absolute; top: 0; left: 0; width: 100%; @@ -2631,7 +2631,7 @@ exports[`EditorToolbar should render with workflow controls hasUnpublishedChange .emotion-0 { box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1); - position: fixed; + position: absolute; top: 0; left: 0; width: 100%; @@ -2851,7 +2851,7 @@ exports[`EditorToolbar should render with workflow controls hasUnpublishedChange .emotion-0 { box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1); - position: fixed; + position: absolute; top: 0; left: 0; width: 100%; @@ -3041,7 +3041,7 @@ exports[`EditorToolbar should render with workflow controls hasUnpublishedChange .emotion-0 { box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1); - position: fixed; + position: absolute; top: 0; left: 0; width: 100%; @@ -3261,7 +3261,7 @@ exports[`EditorToolbar should render with workflow controls hasUnpublishedChange .emotion-0 { box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1); - position: fixed; + position: absolute; top: 0; left: 0; width: 100%; @@ -3481,7 +3481,7 @@ exports[`EditorToolbar should render with workflow controls hasUnpublishedChange .emotion-0 { box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1); - position: fixed; + position: absolute; top: 0; left: 0; width: 100%; @@ -3701,7 +3701,7 @@ exports[`EditorToolbar should render with workflow controls hasUnpublishedChange .emotion-0 { box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1); - position: fixed; + position: absolute; top: 0; left: 0; width: 100%;