doc: fix error
Remove debug leftover
Change element width calculation to default max-width

So width can be set to 100% to fill the parent container.