Fix display of right-to-left text in timeline
Set an explicit default left alignment for label components, to prevent other people's right-to-left names or text from messing up the UI in a left-to-right environment.
This commit is contained in:
		@@ -9,10 +9,9 @@ Label {
 | 
			
		||||
    font.pixelSize: theme.fontSize.normal
 | 
			
		||||
    font.pointSize: -1
 | 
			
		||||
    textFormat: Label.PlainText
 | 
			
		||||
 | 
			
		||||
    horizontalAlignment: Label.AlignLeft
 | 
			
		||||
    color: theme.colors.text
 | 
			
		||||
    linkColor: theme.colors.link
 | 
			
		||||
 | 
			
		||||
    maximumLineCount: elide === Label.ElideNone ? Number.MAX_VALUE : 1
 | 
			
		||||
 | 
			
		||||
    onLinkActivated: Qt.openUrlExternally(link)
 | 
			
		||||
 
 | 
			
		||||
@@ -22,14 +22,15 @@ TextEdit {
 | 
			
		||||
    font.family: theme.fontFamily.sans
 | 
			
		||||
    font.pixelSize: theme.fontSize.normal
 | 
			
		||||
    color: theme.colors.text
 | 
			
		||||
 | 
			
		||||
    textFormat: Label.PlainText
 | 
			
		||||
    tabStopDistance: 4 * 4  // 4 spaces
 | 
			
		||||
    horizontalAlignment: Label.AlignLeft
 | 
			
		||||
 | 
			
		||||
    readOnly: true
 | 
			
		||||
    activeFocusOnPress: false
 | 
			
		||||
    focus: false
 | 
			
		||||
    selectByMouse: true
 | 
			
		||||
 | 
			
		||||
    onLinkActivated: if (enableLinkActivation) Qt.openUrlExternally(link)
 | 
			
		||||
 | 
			
		||||
    MouseArea {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user