I tried this multiple times, but in the end having the gear for height doesn't work with the cylindrical knob - it either needs to spin and come loose or lock and the height is fixed. Also incredibly challenging to print the table bracket with small raised areas on both sides, or get the axle to print cleanly without changing to vertical.

Very neat concept, but ultimately has too many challenges. I'm going to attempt a variation that scraps the teeth in the leg and adds a rotational hole for the angle gear & a nub at the top for the table (fixed height), then flatten the bracket with a pivot hole to receive the nub. The axel will be a single piece, but squared to eliminate the need for a joining key & the clean printing issues.