### Godot version

4.1 Beta 3

### System information

Win10

### Issue description

In the Godot 4.1. Beta3 Scene Panel, node names are overlapping the icons to the right. Like visibility icons, script icons ...
Especially apparent with longer node names:

https://github.com/godotengine/godot/assets/47016402/61cc8c75-efe5-4cfa-ac4f-5fcd4805140b

This is _not_ an issue in Godot 4.0.3:

https://github.com/godotengine/godot/assets/47016402/4035ea3f-80bd-479d-9d6f-761debdd6b49



### Steps to reproduce

Give long node names and resize the Scene Panel

### Minimal reproduction project

N/A
theme_cache.scroll_border = get_theme_constant(SNAME("scroll_border"));
	theme_cache.scroll_speed = get_theme_constant(SNAME("scroll_speed"));
	theme_cache.scrollbar_margin_top = get_theme_constant(SNAME("scrollbar_margin_top"));
	theme_cache.scrollbar_margin_right = get_theme_constant(SNAME("scrollbar_margin_right"));
	theme_cache.scrollbar_margin_bottom = get_theme_constant(SNAME("scrollbar_margin_bottom"));
	theme_cache.scrollbar_margin_left = get_theme_constant(SNAME("scrollbar_margin_left"));
	theme_cache.scrollbar_h_separation = get_theme_constant(SNAME("scrollbar_h_separation"));
	theme_cache.scrollbar_v_separation = get_theme_constant(SNAME("scrollbar_v_separation"));
	theme_cache.title_button = get_theme_stylebox(SNAME("title_button_normal"));
	theme_cache.title_button_pressed = get_theme_stylebox(SNAME("title_button_pressed"));
	theme_cache.title_button_hover = get_theme_stylebox(SNAME("title_button_hover"));
	theme_cache.title_button_color = get_theme_color(SNAME("title_button_color"));
	theme_cache.base_scale = get_theme_default_base_scale();
}
Size2 Tree::_get_cell_icon_size(const TreeItem::Cell &p_cell) const {
	Size2i icon_size = p_cell.get_icon_size();
	int max_width = 0;
	if (theme_cache.icon_max_width > 0) {
		max_width = theme_cache.icon_max_width;
	}
	if (p_cell.icon_max_w > 0 && (max_width == 0 || p_cell.icon_max_w < max_width)) {
		max_width = p_cell.icon_max_w;
	}
	if (max_width > 0 && icon_size.width > max_width) {
		icon_size.height = icon_size.height * max_width / icon_size.width;
		icon_size.width = max_width;
	}
	return icon_size;
}
int Tree::compute_item_height(TreeItem *p_item) const {