forked from MapComplete/MapComplete
		
	Fix css for customgenerator
This commit is contained in:
		
							parent
							
								
									c3e8a18789
								
							
						
					
					
						commit
						5fcf017f63
					
				
					 2 changed files with 5 additions and 4 deletions
				
			
		|  | @ -16,13 +16,13 @@ export default class SingleTagInput extends InputElement<string> { | ||||||
|     private key: InputElement<string>; |     private key: InputElement<string>; | ||||||
|     private value: InputElement<string>; |     private value: InputElement<string>; | ||||||
|     private operator: DropDown<string> |     private operator: DropDown<string> | ||||||
|     private readonly helpMesage: UIElement; |     private readonly helpMessage: UIElement; | ||||||
| 
 | 
 | ||||||
|     constructor(value: UIEventSource<string> = undefined) { |     constructor(value: UIEventSource<string> = undefined) { | ||||||
|         super(undefined); |         super(undefined); | ||||||
|         this._value = value ?? new UIEventSource<string>(""); |         this._value = value ?? new UIEventSource<string>(""); | ||||||
| 
 | 
 | ||||||
|         this.helpMesage = new VariableUiElement(this._value.map(tagDef => { |         this.helpMessage = new VariableUiElement(this._value.map(tagDef => { | ||||||
|                 try { |                 try { | ||||||
|                     FromJSON.Tag(tagDef, ""); |                     FromJSON.Tag(tagDef, ""); | ||||||
|                     return ""; |                     return ""; | ||||||
|  | @ -41,6 +41,7 @@ export default class SingleTagInput extends InputElement<string> { | ||||||
|                 value: new UIEventSource<string>("") |                 value: new UIEventSource<string>("") | ||||||
|             } |             } | ||||||
|         ); |         ); | ||||||
|  |          | ||||||
|         this.operator = new DropDown<string>("", [ |         this.operator = new DropDown<string>("", [ | ||||||
|             {value: "=", shown: "="}, |             {value: "=", shown: "="}, | ||||||
|             {value: "~", shown: "~"}, |             {value: "~", shown: "~"}, | ||||||
|  | @ -101,7 +102,7 @@ export default class SingleTagInput extends InputElement<string> { | ||||||
|     InnerRender(): string { |     InnerRender(): string { | ||||||
|         return new Combine([ |         return new Combine([ | ||||||
|             this.key, this.operator, this.value, |             this.key, this.operator, this.value, | ||||||
|             this.helpMesage |             this.helpMessage | ||||||
|         ]).Render(); |         ]).Render(); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -64,7 +64,7 @@ body { | ||||||
|     padding: 0.15em 0.3em; |     padding: 0.15em 0.3em; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|     form { |     .question form { | ||||||
|         display: inline-block; |         display: inline-block; | ||||||
|         max-width: 90vw; |         max-width: 90vw; | ||||||
|         width: 100%; |         width: 100%; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue