Language:
Free Online Dictionary|3Dict

看菜吃饭

Source : CEDICT

eat depending on the dish (idiom); fig. to act according to actual circumstances/to live within one's means