Skip to content

Commit

Permalink
Fix remove photo (#81)
Browse files Browse the repository at this point in the history
* Fix photo clearing

* Tweak respponsiveness to headers
  • Loading branch information
mojowen authored Mar 5, 2024
1 parent 75d4b5a commit 47b3bda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/app-root/app-root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@
@media (min-width: 900px) {
width: auto;
padding: 0 0.75rem;
font-size: 1.3rem;
}
@media (min-width: 1000px) {
font-size: 1.5rem;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/form-report/form-report.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ export class FormReport {
</div>
<div class="photo-preview-container" hidden={!this.hasPhoto}>
<div id="photo-preview"></div>
<div class="delete" onClick={this.removePhoto}></div>
<div class="delete" onClick={() => this.removePhoto()}></div>
</div>
</div>
<p class="help has-text-red" hidden={!("photo" in this.submitError)}>
Expand Down

0 comments on commit 47b3bda

Please sign in to comment.