4 Commits

  1. 13
      CHANGELOG.md
  2. 4
      assets/css/app.scss
  3. 2
      lib/mirage/images/uploader.ex
  4. 4
      lib/mirage_web/live/note_live/index.ex
  5. 2
      mix.exs

13
CHANGELOG.md

@ -5,6 +5,19 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline
<!-- changelog -->
## [v0.79.3](https://git.inhji.de/inhji/mirage/compare/v0.79.2...v0.79.3) (2021-03-20)
### Bug Fixes:
* crash when creating new note
* make :wide image version a little wider
* remove margins for uploaded pictures
## [v0.79.2](https://git.inhji.de/inhji/mirage/compare/v0.79.1...v0.79.2) (2021-03-19)

4
assets/css/app.scss

@ -43,6 +43,10 @@ input[type=password] {
.images {
display: flex;
img {
margin: 0;
}
}
.CodeMirror {

2
lib/mirage/images/uploader.ex

@ -10,7 +10,7 @@ defmodule Mirage.Images.ImageUploader do
end
def transform(:wide, _) do
{:convert, "-strip -thumbnail 600x450^ -format png", :png}
{:convert, "-strip -thumbnail 800x450^ -format png", :png}
end
def transform(:thumb, _) do

4
lib/mirage_web/live/note_live/index.ex

@ -28,13 +28,13 @@ defmodule MirageWeb.NoteLive.Index do
defp apply_action(socket, :edit, %{"id" => id}) do
socket
|> assign(:page_title, "Edit Note")
|> assign(:note, Notes.get_note!(id))
|> assign(:note, id |> Notes.get_note!())
end
defp apply_action(socket, :new, _params) do
socket
|> assign(:page_title, "New Note")
|> assign(:note, %Note{})
|> assign(:note, %Note{} |> Notes.preload_note())
end
defp apply_action(socket, :index, _params) do

2
mix.exs

@ -1,7 +1,7 @@
defmodule Mirage.MixProject do
use Mix.Project
@version "0.79.2"
@version "0.79.3"
def project do
[

Loading…
Cancel
Save