Uable to resize Kdenlive window height in Gnome

In a fresh install of Debian 12.1 with Gnome as desktop environment, I installed Kdenlive 22.12.3 from the Debian main repository. In Gnome Wayland, I am not able to use the “maximize” window button to make Kdenlive fit within the screen. The Kdenlive window is too tall and I am not able to see the bottom part of the Kdenlive window. I am unable to resize the window to reduce its height. Resizing the width works but the window does not resize when I attempt to reduce the height. Screenshot:

Similarly for Gnome Xorg (but I am unable to post the screenshot because this forum software limits new users to one upload).

What is the cause of the problem here? How do I fix the problem?

Version details:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm

$ apt-cache policy gnome-shell
gnome-shell:
  Installed: 43.6-1~deb12u1
  Candidate: 43.6-1~deb12u2
  Version table:
     43.6-1~deb12u2 500
        500 https://deb.debian.org/debian bookworm/main amd64 Packages
        500 https://security.debian.org/debian-security bookworm-security/main amd64 Packages
 *** 43.6-1~deb12u1 100
        100 /var/lib/dpkg/status

$ apt-cache policy kdenlive
kdenlive:
  Installed: 22.12.3-2+deb12u1
  Candidate: 22.12.3-2+deb12u1
  Version table:
 *** 22.12.3-2+deb12u1 500
        500 https://deb.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status

For Gnome Wayland:

$ echo $XDG_SESSION_DESKTOP 
gnome
$ echo $XDG_SESSION_TYPE
wayland

For Gnome Xorg:

$ echo $XDG_SESSION_DESKTOP 
gnome-xorg
$ echo $XDG_SESSION_TYPE 
x11

Here’s the screenshot for Gnome Xorg that I was not able to include in the post above.