godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.02k stars 21.17k forks source link

Version Control dock panel has minimum width #96668

Open LeoBosse opened 2 months ago

LeoBosse commented 2 months ago

Hello, using godot on a laptop screen, I would like to reduce the width of the gitplugin dock panel to gain space for the rest. However, it seems I cannot go below a given width. When the panel shares the docking position with other panels (Node, scene, import for ex.), the min width also applies to these other panels.

Is there an editor setting to change somewhere (couldn't find any, but not sure where to search)? Is this a feature? Can you remove the minimum width, or add a setting to change it depending on our needs?

Thanks for your help, Léo

Calinou commented 2 months ago

Can you remove the minimum width, or add a setting to change it depending on our needs?

The minimum width is likely here to prevent it from looking completely broken if it's resized to be too narrow.

The version control dock (which is part of core Godot and not this plugin) does not have any minimum width set though: https://github.com/godotengine/godot/blob/5675c76461e197d3929a1142cfb84ab1a76ac9dd/editor/plugins/version_control_editor_plugin.cpp#L1476