Fixed width of name text in replies with block quote icon.
This commit is contained in:
		
							parent
							
								
									5933535c9b
								
							
						
					
					
						commit
						cee2961632
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -732,7 +732,11 @@ void Reply::paint( | ||||||
| 			const auto textw = w | 			const auto textw = w | ||||||
| 				- st::historyReplyPadding.left() | 				- st::historyReplyPadding.left() | ||||||
| 				- st::historyReplyPadding.right(); | 				- st::historyReplyPadding.right(); | ||||||
| 			const auto namew = textw - previewSkip; | 			const auto namew = textw | ||||||
|  | 				- previewSkip | ||||||
|  | 				- (_hasQuoteIcon | ||||||
|  | 					? st::messageTextStyle.blockquote.icon.width() | ||||||
|  | 					: 0); | ||||||
| 			auto firstLineSkip = _nameTwoLines ? 0 : previewSkip; | 			auto firstLineSkip = _nameTwoLines ? 0 : previewSkip; | ||||||
| 			if (namew > 0) { | 			if (namew > 0) { | ||||||
| 				p.setPen(!inBubble | 				p.setPen(!inBubble | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 23rd
						23rd