.panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; } .previewArea { flex: 0 1 420px; min-height: 120px; display: flex; justify-content: center; align-items: center; background: #111; padding: 8px; overflow: hidden; }