File size: 1,275 Bytes
ef987bb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Consistent sidebar and content spacing

Adjust the supplied root `index.html` so the content has a consistent horizontal inset as the sidebar is toggled and the window resizes. Preserve the existing page and sidebar controls; run directly offline. Keep `data-testid` values `sidebar`, `toggle-sidebar`, `content-shell`, `main-content`, and `placeholder`.

## Layout requirements

- With the sidebar collapsed, keep at least 64 px between the viewport's left edge and the main column. In the small-window initial view, keep at least 64 px between the content shell's left edge and the placeholder.
- With the sidebar expanded, keep at least 64 px between its right edge and the main column.
- In a wide window, center the column in the available area: between the sidebar's right edge and the viewport's right edge when expanded, or within the viewport when collapsed. Use any CSS layout that produces these positions.

## Acceptance Checklist

- The small-window placeholder is inset by at least 64 px.
- The expanded sidebar leaves at least 64 px before the main column, and the column is centered in the remaining space at a wide viewport.
- Collapsing the sidebar preserves the main column's left inset. The page stays usable without network requests or browser errors.