mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	fix(note_language): double separator when only RTL languages
This commit is contained in:
		
							parent
							
								
									deb5d82c02
								
							
						
					
					
						commit
						77d6cdc546
					
				@ -139,11 +139,17 @@ export default class NoteLanguageWidget extends NoteContextAwareWidget {
 | 
			
		||||
        const rightToLeftLanguages = filteredLanguages.filter((l) => l.rtl);
 | 
			
		||||
 | 
			
		||||
        let locales: ("---" | Locale)[] = [
 | 
			
		||||
            DEFAULT_LOCALE,
 | 
			
		||||
            "---",
 | 
			
		||||
            ...leftToRightLanguages
 | 
			
		||||
            DEFAULT_LOCALE
 | 
			
		||||
        ];
 | 
			
		||||
 | 
			
		||||
        if (leftToRightLanguages.length > 0) {
 | 
			
		||||
            locales = [
 | 
			
		||||
                ...locales,
 | 
			
		||||
                "---",
 | 
			
		||||
                ...leftToRightLanguages
 | 
			
		||||
            ];
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (rightToLeftLanguages.length > 0) {
 | 
			
		||||
            locales = [
 | 
			
		||||
                ...locales,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user