Rhenny
Adventurer
You're absolutely right about this. Dragon's flying around for 20 rounds and doing flyby breath attacks is hardly exciting.
But unfortunately putting them within melee range is asking for a dead Dragon. They need about double their hit points to actually provide an epic fight.
Maybe one of their legendary actions should be "Second Wind" or something, which allows them to regain 1d10 + their CR worth of hit points. Also get rid of their legendary perception check and give them true sight instead.
In the playtest, one of the lair actions was to regain 30 hp. It really helped the dragon survive for a lot longer although I think when I ran a modified white dragon encounter against a party of 8th level PCs in the playtest, the PCs prevailed in about 8 rounds even with the 30 hp regeneration used 4 times. (I think 4x was the limit in the playtest).