function page(component) {
    return {
        render: function (vnode) {
            return m(layout.LayoutInterface, m(component, { context: vnode.attrs }));
        },
    };
}
Only set width: min-content for the attached popup,
and allow content to fill detached window