Repository: godotengine/godot
File: editor/docks/filesystem_dock.cpp (C++)

Code before:

					tree->set_scroll_hint_mode(Tree::SCROLL_HINT_MODE_TOP);
					tree_mc->set_theme_type_variation("NoBorderHorizontalBottom");
				}
				button_file_list_display_mode->hide();

				_update_tree(get_uncollapsed_paths());
				file_list_vb->hide();
			} break;

			case DISPLAY_MODE_HSPLIT:
			case DISPLAY_MODE_VSPLIT: {
				const bool is_vertical = display_mode == DISPLAY_MODE_VSPLIT;
				split_box->set_vertical(is_vertical);

				const int actual_offset = is_vertical ? split_box_offset_v : split_box_offset_h;
				split_box->set_split_offset(actual_offset);
				const StringName icon = is_vertical ? SNAME("Panels2") : SNAME("Panels2Alt");
				button_toggle_display_mode->set_button_icon(get_editor_theme_icon(icon));

				tree->show();
				tree->set_v_size_flags(SIZE_EXPAND_FILL);
				if (is_vertical) {
					tree->set_theme_type_variation("");
					tree->set_scroll_hint_mode(Tree::SCROLL_HINT_MODE_BOTH);
					tree_mc->set_theme_type_variation("NoBorderHorizontalBottom");

					files->set_theme_type_variation(horizontal ? "ItemListSecondary" : "");
					files->set_scroll_hint_mode(horizontal ? ItemList::SCROLL_HINT_MODE_DISABLED : ItemList::SCROLL_HINT_MODE_TOP);
					files_mc->set_theme_type_variation(horizontal ? "" : "NoBorderHorizontalBottom");
				} else {
					tree->set_theme_type_variation("TreeSecondary");
					tree->set_scroll_hint_mode(Tree::SCROLL_HINT_MODE_DISABLED);
					tree_mc->set_theme_type_variation("");

					files->set_theme_type_variation("ItemListSecondary");
					files->set_scroll_hint_mode(ItemList::SCROLL_HINT_MODE_DISABLED);
					files_mc->set_theme_type_variation("");
				}
				tree->ensure_cursor_is_visible();

				toolbar2_hbc->hide();
				button_file_list_display_mode->show();
				_update_tree(get_uncollapsed_paths());

				file_list_vb->show();
				_update_file_list(true);
			} break;
		}

		old_display_mode = display_mode;

Review comment (suggestion):
```suggestion
					tree_mc->set_theme_type_variation("NoBorderHorizontal");
```

To fix this:

<img width="285" height="73" alt="Image" src="https://github.com/user-attachments/assets/3fb33e08-3b72-455f-9a07-558cf4a3f3e2" />

Code after:

					tree->set_scroll_hint_mode(Tree::SCROLL_HINT_MODE_TOP);
					tree_mc->set_theme_type_variation("NoBorderHorizontalBottom");
				}
				button_file_list_display_mode->hide();

				_update_tree(get_uncollapsed_paths());
				file_list_vb->hide();
			} break;

			case DISPLAY_MODE_HSPLIT:
			case DISPLAY_MODE_VSPLIT: {
				const bool is_vertical = display_mode == DISPLAY_MODE_VSPLIT;
				split_box->set_vertical(is_vertical);

				const int actual_offset = is_vertical ? split_box_offset_v : split_box_offset_h;
				split_box->set_split_offset(actual_offset);
				const StringName icon = is_vertical ? SNAME("Panels2") : SNAME("Panels2Alt");
				button_toggle_display_mode->set_button_icon(get_editor_theme_icon(icon));

				tree->show();
				tree->set_v_size_flags(SIZE_EXPAND_FILL);
				if (is_vertical) {
					tree->set_theme_type_variation("");
					tree->set_scroll_hint_mode(Tree::SCROLL_HINT_MODE_BOTH);
					tree_mc->set_theme_type_variation(horizontal ? "NoBorderBottomPanel" : "NoBorderHorizontal");

					files->set_theme_type_variation(horizontal ? "ItemListSecondary" : "");
					files->set_scroll_hint_mode(horizontal ? ItemList::SCROLL_HINT_MODE_DISABLED : ItemList::SCROLL_HINT_MODE_TOP);
					files_mc->set_theme_type_variation(horizontal ? "" : "NoBorderHorizontalBottom");
				} else {
					tree->set_theme_type_variation("TreeSecondary");
					tree->set_scroll_hint_mode(Tree::SCROLL_HINT_MODE_DISABLED);
					tree_mc->set_theme_type_variation("");

					files->set_theme_type_variation("ItemListSecondary");
					files->set_scroll_hint_mode(ItemList::SCROLL_HINT_MODE_DISABLED);
					files_mc->set_theme_type_variation("");
				}
				tree->ensure_cursor_is_visible();

				toolbar2_hbc->hide();
				button_file_list_display_mode->show();
				_update_tree(get_uncollapsed_paths());

				file_list_vb->show();
				_update_file_list(true);
			} break;
		}

		old_display_mode = display_mode;