Bug 385263 - Center text block horizontally
Summary: Center text block horizontally
Status: RESOLVED INTENTIONAL
Alias: None
Product: kmarkdownwebview
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 0.2.0
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Friedrich W. H. Kossebau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-01 14:26 UTC by Friedrich W. H. Kossebau
Modified: 2017-11-12 16:08 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Friedrich W. H. Kossebau 2017-10-01 14:26:36 UTC
While the (default) CSS has a maximum width for the text, the resulting block is shown left-aligned.

Look into making it centered instead.
Comment 1 Friedrich W. H. Kossebau 2017-11-12 16:08:07 UTC
Having looked into things, markdown.css actually centers the complete document. But it left aligns the text body and the headers in the document, while the headers can grow to fill quite some size, the body though being restricted to a smaller size. Which results in the text body to be not centered to the viewport usually.

I picked markdown.css to avoid getting into the business of doing CSS, as I lack designer knowledge.

So instead of starting random changes to the original design, any future effort should rather go into solving https://bugs.kde.org/show_bug.cgi?id=385219 (Support custom stylesheet), so everyone can please themselves as they prefer.