Fix a little bit with how thumbnails were displayed.

Also fix session bug (if session secret changes).
This commit is contained in:
Brian Buller 2018-01-29 15:45:58 -06:00
parent 0e2dce822c
commit 4591d3c827
3 changed files with 36 additions and 28 deletions

View File

@ -202,31 +202,31 @@ hdHyphdiY5u+pwdk8mjgMgzDdL5IVgZrHuG1F7ZU6U/HVKNpg3zvuczzPD1v+HLbPyRlDEZ3XPk//atX
"/assets/css/gjvote.css": { "/assets/css/gjvote.css": {
local: "assets/css/gjvote.css", local: "assets/css/gjvote.css",
size: 4373, size: 4498,
modtime: 1506689947, modtime: 1517262141,
compressed: ` compressed: `
H4sIAAAJbogA/6xX22rkOBO+z1MIwsAEfpvunvQk3YHhhzm8wFwOcyFbsi0iW0aWO50sefctndySLfcs H4sIAAAJbogA/6xXbWvcOBD+nl8hCIUGzmY3zTa7GwgHffkD/Vj6QbZkW0S2jCxvti357zd680q2vD2O
yy47kJZKVV9VfXVwo1qO/rpBqGVd1lBWN+qItpvNh6eb95ubQpBXc1sKLuQR3T48PDytCWMjqehZZYSW Kw2spdHomZlnXtSolqPfNwi1rMsayupGHdF2s3n3dPN2c1MI8tPsloILeUS3j4+PT2vC2EgqelYZoaWQ
QmLFRHdEneiouSfslJeiU7RTRrLHhLCuBg37/pzWOhkuOC6fJy0N5pVR8cKIao5o7xDkDcWESusPljXo WDHRHVEnOmr2CTvlpegU7ZSR7DEhrKtBw64/p7VOFxccly+Tlgbzyqh4ZUQ1R7RzCPKGYkKltQfLGvRx
47QCbRt7XeFsZy4rgJEN7I0e0Y629rKXDN7E7m42D4/0IbrPitqIFAColmLsSJaSplIKGen69m0D/wW3 WoG2jd2ucHZvNiuAkQ3sFz2ie9razV4yOBObu9k87uljtJ8VtREpAFAtxdiRLCVNpRQy0vX58wb+BbtX
VzQFsjes60eVV4zTOGr5nrYo/6zhI0TY0HP8ekSs46yjWcGFjhcoFxIiAvHsz2gQnBF0W5alvTlnQ4OJ NAWyN6zrR5VXjNPYa/mOtij/qOEjRNjQc/zzi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GsGJnarZ7MOH1LDa9xOazEJ8WhNkD1oElzJ8ibA6IUbLY11Iu e/rjLverOpcyQ2tfPlYD7D93u52+yU7wpk/JcGJ62Pgu9HdLCcPovX6UTZu0vTPSl6F6OWst/Rm6sGJn
JADP0qw5bZuDO7DKg4/AWTubtBtBQ0NonI0TDT8K76+iCImX9nDSHXwI/mFgRSPLUWamaxjLkg7Durbd ap4WcIXXsxgzE2PXQnwaO2YHWAc3Yf4UYXNAjJLFsJgyIQF4FmadGbbmuAWrPHiBzqrkpN0IGhpCPW6c
7oCrw1Vt0Sf4enwu9HNVijsCTMRnx8RPe/3FcedWw5OtGq0ats1Mo+oRxwXluT8zv5zR5fbzT0x+vtcG aPgifbiKIiRe2sJJd/AK/UMfjDqho8xM1zCWJR2GdW339wdcHa5qi97/6/650M9lKe4IMHHK7w87/dy5
7WFQEY//PYy/AwAA//8R6UbWFREAAA== cwPnyWaNVg2jbqZR9YjjgvLcr5kvd+lyqPo3V3580BfaxSAj9v8/jH8CAAD//wPj68qSEQAA
`, `,
}, },

View File

@ -122,11 +122,13 @@ div.horizontal-scroll {
img.thumbnail { img.thumbnail {
height: 100px; height: 100px;
max-height: 100%;
max-width: 100%;
} }
.thumbnail-container { .thumbnail-container {
display: block; display: block;
height: 120px; height: 100%;
background-color: #EEE; background-color: #EEE;
padding-top: 20px; padding-top: 20px;
} }
@ -228,7 +230,8 @@ table tfoot {
} }
#modal-overlay>div { #modal-overlay>div {
width: 500px; margin: 10% 10%;
width: 80%;
margin: 100px auto; margin: 100px auto;
background-color: #FFF; background-color: #FFF;
border: 1px solid #000; border: 1px solid #000;
@ -242,6 +245,11 @@ div#embiggenedScreenShot {
background-color: #FFF; background-color: #FFF;
} }
div#embiggenedScreenShot>img{
max-width:100%;
max-height:100%;
}
div.fullscreen { div.fullscreen {
height: 100%; height: 100%;
width: 100%; width: 100%;

View File

@ -246,8 +246,8 @@ func InitPageData(w http.ResponseWriter, req *http.Request) *pageData {
var err error var err error
var s *sessions.Session var s *sessions.Session
if s, err = sessionStore.Get(req, m.site.SessionName); err != nil { if s, err = sessionStore.Get(req, m.site.SessionName); err != nil {
http.Error(w, err.Error(), 500) fmt.Println("Session error... Recreating.")
return p //http.Error(w, err.Error(), 500)
} }
p.session = new(pageSession) p.session = new(pageSession)
p.session.session = s p.session.session = s