The golden rule for bedside tables is keeping the top surface within 5 to 10 cm...
https://blast-wiki.win/index.php/My_nightstand_is_taller_than_my_mattress_-_is_that_bad%3F_A_Professional%27s_Guide
The golden rule for bedside tables is keeping the top surface within 5 to 10 cm below your mattress top. This makes reaching for your phone or a glass of water effortless while you are in bed