]> _ Git - songbook.git/commitdiff
.
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Sat, 4 Feb 2023 11:45:37 +0000 (12:45 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Sat, 4 Feb 2023 11:45:37 +0000 (12:45 +0100)
app/Http/Controllers/FrontController.php
resources/css/app.sass

index e2de20db11387333338128b6f104855f2eba9152..524891739dec6462db87c53d77140aa04d4e5950 100644 (file)
@@ -122,6 +122,7 @@ class FrontController extends Controller {
                         `$cmd`;
                     }
                     $lyrics_html = file_get_contents($htmlFile);
+                    $lyrics_html = str_replace('<img src="', '<img src="/storage/' . $lyrics_doc->id . '/html/', $lyrics_html);
                     //$lyrics_html = str_replace('<style', '<style scoped', $lyrics_html);
                 }
             } catch (\Exception $e) {
index 9553feb6f04969d1e27ed4fd3dbc80a5f30534ce..f10f800480123d898d2b438aa594320fa734bbaf 100644 (file)
@@ -152,6 +152,7 @@ main
             @media (prefers-color-scheme: dark)
                 color: #fff
             font-size: 0.65em
+
             &.order
                 font-size: 1em
                 margin-right: 10px
@@ -173,13 +174,18 @@ article.song
 
         &.fromdoc
             padding: 20px 0
-            p,font
-                font-size: calc(16px*var(--text-multi)) !important
+
+            p, font
+                font-size: calc(16px * var(--text-multi)) !important
                 font-family: $slab !important
                 color: #000 !important
                 @media (prefers-color-scheme: dark)
                     color: #fff !important
 
+            img
+                max-width: 100%
+                height: auto
+
         &.fromnotion
             margin: 0 !important
             font-family: $slab !important
@@ -192,6 +198,7 @@ article.song
             &.notes
                 font-family: "Dancing Script", cursive !important
                 padding-top: 20px
+
                 p
                     font-size: 1.35em !important
 
@@ -271,6 +278,7 @@ article.song
 
     ul
         list-style: none
+
         li
             margin: 7px 0 7px 30px
             font-size: 1.4em