mirror of
				https://github.com/yattee/yattee.git
				synced 2025-10-31 12:41:57 +00:00 
			
		
		
		
	Fix search field on macOS
This commit is contained in:
		| @@ -37,6 +37,7 @@ struct SearchTextField: View { | |||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
|                 #if os(macOS) |                 #if os(macOS) | ||||||
|  |                 .frame(maxWidth: 190) | ||||||
|                 .textFieldStyle(.plain) |                 .textFieldStyle(.plain) | ||||||
|                 #else |                 #else | ||||||
|                 .textFieldStyle(.roundedBorder) |                 .textFieldStyle(.roundedBorder) | ||||||
| @@ -52,6 +53,11 @@ struct SearchTextField: View { | |||||||
|                             .padding(.trailing) |                             .padding(.trailing) | ||||||
|                     #endif |                     #endif | ||||||
|                     clearButton |                     clearButton | ||||||
|  |                 } else { | ||||||
|  |                     #if os(macOS) | ||||||
|  |                         clearButton | ||||||
|  |                             .opacity(0) | ||||||
|  |                     #endif | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Arkadiusz Fal
					Arkadiusz Fal