CON-1809 | Fix overlapping of anchored element

consider splitting conditions into separate lines for better readability