Calculated canvas fields don’t show at full width in modal view

Given two calculated fields (one text, one canvas) showing the same content, I was expecting the content to be shown at the same width, but for some reason, canvas fields appear to be shown at only about 90% width:

Both fields are using this calculation:

Repeat(".", 500)