I am working on a layout that consists of an editor and multiple buttons positioned above it on the right side. My goal is to add a panel just below "Button2" that will overlay the editor. This panel should expand and collapse when "Button2" is clicked, which should be simple to implement.
I have already written some code for this project, which can be found here: https://codesandbox.io/s/fervent-mclaren-3mrtyj?file=/src/App.js. However, currently, the panel is not appearing under "Button2" as intended and does not overlay the editor.
If anyone has suggestions on how to adjust the CSS to achieve the desired layout, I would greatly appreciate the assistance.
import React from "react";
import { Stack } from "@fluentui/react";
export default class App extends React.Component {
render() {
return (
<div>
<Stack horizontal horizontalAlign="space-between">
<div>Title</div>
<div>Button1 Button2 Button3</div>
</Stack>
<div
style={{
backgroundColor: "yellow",
width: "350px",
height: "50px"
}}
>
A floating panel which is supposed to be always under "Button2" and
overlays the editor.
</div>
<div
style={{
backgroundColor: "gray",
width: "100%",
height: "300px"
}}
>
An editor
</div>
</div>
);
}
}