I have this code: <div className="flex flex-col h-full justify-between" style={{…
- User
I have this code:
<div className="header d-flex justify-content-between align-items-center"> {/* Drag handle icon */} <span className="drag-handle" style={{ cursor: 'move' }}> <i className="bi bi-three-dots-vertical"></i> </span> {/* Edit button */} <button className="btn btn-secondary btn-sm me-2" onClick={() => handleEditBlock(block)}> <i className="bi bi-pencil"></i> </button> {/* Remove button */} <button className="btn btn-danger btn-sm" onClick={() => handleRemoveBlock(block.i)}> <i className="bi bi-trash"></i> </button> </div> <div className="body"> <p>{block.content}</p> </div> </div>. and im strugging to have it work for smaller screens, such as mobile in portrait. I want the drag option on the left and edit and remove buttons on the right on larger displays and on mobile, i want them to be a vertical list since their isn't much room.
- Assistant
To achieve a responsive layout for both mobile and larger screens, you can adjust the flex properties and utility classes used in your code.