]> BookStack Code Mirror - bookstack/commitdiff
Merge pull request #9 from OsmosysSoftware/feature-181
authorAbijeet <redacted>
Thu, 13 Jul 2017 10:20:43 +0000 (15:50 +0530)
committerGitHub <redacted>
Thu, 13 Jul 2017 10:20:43 +0000 (15:50 +0530)
Feature 181

public/default.png
resources/assets/sass/styles.scss
resources/views/books/form.blade.php
resources/views/books/grid-item.blade.php
resources/views/books/index.blade.php

index 3b04154027b359a3f9521c1ad01f56a442d5319b..1147e23e159c6e564c023e4f40dfc06d76432060 100644 (file)
Binary files a/public/default.png and b/public/default.png differ
index a16aff60df40446e692c080962b67172e901a439..e95e571b5ad53a376999b186d48c967c109326a0 100644 (file)
@@ -280,7 +280,7 @@ $btt-size: 40px;
   margin-bottom: 32px;
   height: 330px;
   overflow: hidden;
-  border: 1px solid #9e9e9e;
+  border: 1px solid #ccc;
   h4 {
     font-size: 1.2em;
     text-align: center;
@@ -301,4 +301,10 @@ $btt-size: 40px;
   img {
     border-radius: 3px;
   }
-}
\ No newline at end of file
+}
+
+.cover {
+    height: 192px;
+    width: 120px;
+    border-radius: 3px;
+  }
\ No newline at end of file
index 34f5fd842979d57f076f2e725c1030bd3546bcf4..e26edac4b8881da26ff2874e03dcbfb102101272 100644 (file)
@@ -21,7 +21,7 @@
             'currentImage' => @isset($model) ? $model->getBookCover(80) : baseUrl('/default.png') ,
             'currentId' => @isset($model) ? $model->image : 0,
             'name' => 'image',
-            'imageClass' => 'avatar cover'
+            'imageClass' => 'cover'
         ])
 </div>
 <div class="form-group">
index e546d51e28de1da0588ea45a6b392f99240093d5..9cc58225a16294827b53cbc895776011a749ff6d 100644 (file)
@@ -1,4 +1,4 @@
-<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3"  data-entity-type="book" data-entity-id="{{$book->id}}">
+<div class="col-xs-6 col-sm-4 col-md-4 col-lg-3"  data-entity-type="book" data-entity-id="{{$book->id}}">
     <div class="gallery-item">
     <h4>
         <a class="text-book entity-list-item-link" href="{{$book->getUrl()}}"><i class="zmdi zmdi-book"></i><span class="entity-list-item-name">{{$book->name}}</span>
index c5dd38a8722c0fa5be64c7683d87bc1ffe105fd2..be17457d1ca794fc6a864988df833fa8f24d8054 100644 (file)
                 <h1>{{ trans('entities.books') }}</h1>
                 @if(count($books) > 0)
                     @if($books_display=='grid')
+                      <div class="row">
                         @foreach($books as $book)
                             @include('books/grid-item', ['book' => $book])
                         @endforeach
                         <div class="col-xs-12">
                             {!! $books->render() !!}
                         </div>
+                      </div>
                     @else
                         @foreach($books as $book)
                             @include('books/list-item', ['book' => $book])