mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:29:32 -05:00 
			
		
		
		
	fix(web): large description on detail-panel (#6305)
This commit is contained in:
		
							parent
							
								
									12dc7c48c9
								
							
						
					
					
						commit
						e5786b200a
					
				@ -60,6 +60,7 @@
 | 
				
			|||||||
      api.assetApi.getAssetById({ id: asset.id }).then((res) => {
 | 
					      api.assetApi.getAssetById({ id: asset.id }).then((res) => {
 | 
				
			||||||
        people = res.data?.people || [];
 | 
					        people = res.data?.people || [];
 | 
				
			||||||
        textarea.value = res.data?.exifInfo?.description || '';
 | 
					        textarea.value = res.data?.exifInfo?.description || '';
 | 
				
			||||||
 | 
					        autoGrowHeight();
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
@ -112,10 +113,9 @@
 | 
				
			|||||||
    showEditFaces = false;
 | 
					    showEditFaces = false;
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const autoGrowHeight = (e: Event) => {
 | 
					  const autoGrowHeight = () => {
 | 
				
			||||||
    const target = e.target as HTMLTextAreaElement;
 | 
					    textarea.style.height = 'auto';
 | 
				
			||||||
    target.style.height = 'auto';
 | 
					    textarea.style.height = `${textarea.scrollHeight}px`;
 | 
				
			||||||
    target.style.height = `${target.scrollHeight}px`;
 | 
					 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const handleFocusIn = () => {
 | 
					  const handleFocusIn = () => {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user