Permalink
Browse files

Fix whitespace issue with transitions, and make sure app gets rendered.

  • Loading branch information...
1 parent 98cd376 commit a7baf1fec2450341a46abdac382ffa83a0085955 @ericf committed May 9, 2012
Showing with 10 additions and 4 deletions.
  1. +7 −1 public/style.css
  2. +1 −1 shared/templates/lightbox.handlebars
  3. +2 −2 views/layouts/main.handlebars
View
@@ -308,6 +308,9 @@ h1 a:visited {
padding: 1em 0;
}
+.grid {
+ width: 100%;
+}
.grid ul {
margin: 0 -5px;
padding: 0;
@@ -345,7 +348,10 @@ h1 a:visited {
}
.grid .selected img { opacity: 0.5; }
-.lightbox { text-align: center; }
+.lightbox {
+ width: 100%;
+ text-align: center;
+}
.lightbox-nav {
margin: 0;
padding: 0;
@@ -11,7 +11,7 @@
{{/if}}
<div class="photo">
- <img src="{{photo.largeUrl}}" />
+ <img src="{{photo.largeUrl}}" alt="A photo titled: {{photo.title}}" />
<div class="photo-info">
<h2 class="photo-title">
@@ -24,7 +24,7 @@
{{> header}}
</div>
- <div id="main">
+ <div id="main" class="layout">
{{{body}}}
</div>
</div>
@@ -84,7 +84,7 @@
viewContainer: '#main',
transitions : true,
serverRouting: true
- });
+ }).render();
photos.isEmpty() && app.loadPhotos();
view && app.showView(viewName, null, {transition: false});

0 comments on commit a7baf1f

Please sign in to comment.