fix issue of menu padding breaking in Safari