Fixed long text issue for SVG elements by truncating the text if its too
long