thibaud-rohmer / PhotoLight

The easiest photo gallery there is.
47 stars 9 forks source link

Image does'nt fit in my screen #5

Open peter450 opened 5 years ago

peter450 commented 5 years ago

Thank you for the code. I have a 1536 x 864 screeen and the image doesn't fit it. So I've changed something in the ccs file like this

#viewer{
    display:    none;
    position:   fixed;
    top:        5px;// change this from 150 to 5
    left:       0;
    right:      0;
    text-align: center;
    height:     50%; //<= ??
}
#viewer img{
    max-height: 98vh;//<= does'nt fit in old browser
    max-width:  auto;
    border: 1px solid black;
    -webkit-box-shadow: rgb(0, 0, 0) 0px 0px 8px 2px;
    box-shadow: 0 0 8px black;
    }
#breadcrumbs{
    background: black;
    position:fixed;
    top:0;
    left:0;
    right:0;
    -webkit-box-shadow: rgb(0, 0, 0) 0px 0px 8px 2px;
    box-shadow: 0 0 8px black;
    /* z-index:100; */
}