Fix a layout issue in LFSDetailView

Fix a mistake in how rich content size was calculated (it was
calculated assuming a wider rectangle than what is actually available).