Use box-sizing: border-box on content items. Re-render attachment list view when window resized.