fix(ui): fix code editor error and annotations gadgets layout shifts (#10969)