mirror of
				https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
				synced 2025-10-31 03:46:50 +00:00 
			
		
		
		
	fixed form formatting, moved it to its own file
This commit is contained in:
		| @@ -80,7 +80,22 @@ class ReviewCard extends HTMLElement { | ||||
|       time { | ||||
|         color: #70757A; | ||||
|         font-size: 12px; | ||||
|       } | ||||
| 	  } | ||||
|  | ||||
| 	  .tag-container { | ||||
| 		display: flex; | ||||
| 		flex-flow: row wrap; | ||||
| 	} | ||||
| 	   | ||||
| 	.tag { | ||||
| 		background-color:#94da97; | ||||
| 		border-radius: 7px; | ||||
| 		color: #94da97; | ||||
| 		padding-right: 7px; | ||||
| 		padding-left: 7px; | ||||
| 		margin: 3px; | ||||
| 		font-weight: bold; | ||||
| 	} | ||||
|     `; | ||||
| 		articleEl.append(styleEl); | ||||
| 		shadowEl.append(articleEl); | ||||
|   | ||||
| @@ -68,11 +68,12 @@ function setupUpdate(){ | ||||
| 	let currID = JSON.parse(sessionStorage.getItem("currID")); | ||||
| 	let currReview = getReviewFromStorage(currID); | ||||
| 	let form = document.getElementById("update-food-entry"); | ||||
| 	let updateDiv = document.getElementById("update-form-div"); | ||||
| 	let updateDiv = document.getElementById("update-form"); | ||||
| 	updateBtn.addEventListener("click", function(){ | ||||
| 		//update function | ||||
|  | ||||
| 		updateDiv.style.display = "block"; | ||||
| 		updateDiv.classList.remove("hidden"); | ||||
|  | ||||
| 		let tagContainer = document.getElementById("tag-container-form"); | ||||
|  | ||||
| 		//Set value of each input element to current's values | ||||
|   | ||||
		Reference in New Issue
	
	Block a user