Skip to content

Display a placeholder that indicates "no photos available" when appli…#261

Draft
tarabassir wants to merge 1 commit intomasterfrom
no_photos_placeholder
Draft

Display a placeholder that indicates "no photos available" when appli…#261
tarabassir wants to merge 1 commit intomasterfrom
no_photos_placeholder

Conversation

@tarabassir
Copy link
Copy Markdown

Motivation and context

#254

Screenshots

before after
before after

What I did

Added a span inside the div with id="sidebar-tree", and made it only visible when there is no picture available.

Comment thread public/js/Sidebar.js
this.heritageTreeNumber = document.getElementById('sidebar-heritage-number');
this.heritageTreeNumber = document.getElementById('sidebar-heritage-number');
this.heritageTreeNumber = document.getElementById('sidebar-heritage-number');
this.heritageTreeNumber = document.getElementById('sidebar-heritage-number');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's changed here? I'm not quite sure why this.heritageTreeNumber = document.getElementById('sidebar-heritage-number'); appears twice in a row, but it was written that way before, too

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't recall changing this part. Maybe I changed it by accident, it's not a part of my solution

@emillipede
Copy link
Copy Markdown
Collaborator

thank you @tarabassir !

until we design a placeholder that displays "no photos available" I'd like to use an icon as a placeholder. I'm sorry I didn't clarify it in the issue. I just added a noun project icon to the repo icons folder. could you please substitute this image for the current "no photos available" text?

thank you again!

@emillipede emillipede marked this pull request as draft April 17, 2020 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants