refactor(web): read the pane arrangement from one place (#40966)