There are several ways to do this, but most are only practical if you have a small number of tracks in your project.
The quickest way to do that is to right-click on the left end of the tracks, and do this for both video and audio tracks:
You can also manually drag bottom edge of the Fx track up towards the top until it's as small as possible.
If the tracks still won't fit, click and drag the 5 small dots above the center of the timeline (highlighted in green) up to expand the timeline area:
Note that this will necessarily reduce the preview and library/tool control areas above.
If you have more than one monitor, you can undock the preview window (highlighted in orange) and move that to another monitor, which will give you the maximum available room for the timeline
YouTube/optodata
DS365 | Win11 Pro | Ryzen 9 3950X | RTX 4070 Ti | 32GB RAM | 10TB SSDs | 5K+4K HDR monitors
Canon Vixia GX10 (4K 60p) | HF G30 (HD 60p) | Yi Action+ 4K | 360Fly 4K 360°