diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp index 472f320d49b..fa2b3b6ded4 100644 --- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp +++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp @@ -849,10 +849,19 @@ void HackStudioWidget::create_project_tab(GUI::Widget& parent) { m_project_tab = parent.add(); m_project_tab->set_tab_position(GUI::TabWidget::TabPosition::Bottom); - m_project_tree_view = m_project_tab->add_tab("Files"); + + auto& tree_view_container = m_project_tab->add_tab("Files"); + tree_view_container.set_layout(); + tree_view_container.layout()->set_margins({ 2, 2, 2, 2 }); + + m_project_tree_view = tree_view_container.add(); configure_project_tree_view(); - m_class_view = m_project_tab->add_tab("ClassView"); + auto& class_view_container = m_project_tab->add_tab("Classes"); + class_view_container.set_layout(); + class_view_container.layout()->set_margins({ 2, 2, 2, 2 }); + + m_class_view = class_view_container.add(); ProjectDeclarations::the().on_update = [this]() { m_class_view->refresh();