This Fixes #962 : added min-width as current width of the span

added the missing <code>span</code> and settign min-width to default content width whenever content changes