Better centering. Fix album sorted bug.

This commit is contained in:
Jason A. Donenfeld 2011-05-06 08:38:15 -04:00
parent 40fbd49442
commit b16b6eee02
2 changed files with 12 additions and 10 deletions

View File

@ -44,7 +44,7 @@ class Album(object):
self._photos_sorted = False self._photos_sorted = False
def add_album(self, album): def add_album(self, album):
self._albums.append(album) self._albums.append(album)
self._photos_sorted = False self._albums_sorted = False
def _sort(self): def _sort(self):
if not self._photos_sorted: if not self._photos_sorted:
self._photos.sort() self._photos.sort()

View File

@ -43,11 +43,9 @@ a:hover {
.album-button { .album-button {
float: left; float: left;
display: block; display: block;
width: 150px; width: 138px;
height: 150px; height: 138px;
margin-right: 10px; margin: 6px;
margin-bottom: 5px;
margin-top: 5px;
text-align: center; text-align: center;
font-style: italic; font-style: italic;
border: 1px #86A1B6 dotted; border: 1px #86A1B6 dotted;
@ -59,13 +57,13 @@ a:hover {
width: auto; width: auto;
font-size: 2.5em; font-size: 2.5em;
line-height: 0; line-height: 0;
padding-top: 0.3em; top: 40%;
} }
#back { #back {
left: 0; left: .5em;
} }
#next { #next {
right: 0; right: .5em;
} }
#photo { #photo {
border: 0; border: 0;
@ -74,7 +72,11 @@ a:hover {
position: absolute; position: absolute;
bottom: 150px; bottom: 150px;
top: 2.5em; top: 2.5em;
margin: 0 auto; overflow: hidden;
margin-bottom: 0.5em;
left: 0;
right: 0;
text-align: center;
} }
.photo-view-container { .photo-view-container {
position: absolute; position: absolute;