fix layout bug in chat layout