diff options
Diffstat (limited to 'app/assets')
| -rw-r--r-- | app/assets/javascripts/admin/records.coffee | 2 | ||||
| -rw-r--r-- | app/assets/stylesheets/admin/layout.scss | 25 |
2 files changed, 21 insertions, 6 deletions
| diff --git a/app/assets/javascripts/admin/records.coffee b/app/assets/javascripts/admin/records.coffee index 27cdb78..3862b09 100644 --- a/app/assets/javascripts/admin/records.coffee +++ b/app/assets/javascripts/admin/records.coffee | |||
| @@ -28,3 +28,5 @@ $(document).on "turbolinks:load", -> | |||
| 28 | $(".tags-input input[type=text]").autocomplete({ | 28 | $(".tags-input input[type=text]").autocomplete({ |
| 29 | source: Routes.suggest_tags_path() | 29 | source: Routes.suggest_tags_path() |
| 30 | }) | 30 | }) |
| 31 | $(".image-uploads pre").click -> | ||
| 32 | navigator.clipboard.writeText($(this).text()); | ||
| diff --git a/app/assets/stylesheets/admin/layout.scss b/app/assets/stylesheets/admin/layout.scss index bf15b0d..9585414 100644 --- a/app/assets/stylesheets/admin/layout.scss +++ b/app/assets/stylesheets/admin/layout.scss | |||
| @@ -82,19 +82,16 @@ body { | |||
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | #entry-form { | 84 | #entry-form { |
| 85 | display: flex; | 85 | display: grid; |
| 86 | grid-template-columns: 73% 27%; | ||
| 86 | height: 100%; | 87 | height: 100%; |
| 87 | 88 | ||
| 88 | fieldset { | 89 | fieldset { |
| 89 | border: 0; | 90 | border: 0; |
| 90 | } | 91 | } |
| 91 | 92 | ||
| 92 | #content { | ||
| 93 | width: 77%; | ||
| 94 | } | ||
| 95 | |||
| 96 | #details { | 93 | #details { |
| 97 | width: 23%; | 94 | min-width: 0; |
| 98 | display: flex; | 95 | display: flex; |
| 99 | flex-direction: column; | 96 | flex-direction: column; |
| 100 | padding-left: 0; | 97 | padding-left: 0; |
| @@ -201,6 +198,22 @@ body { | |||
| 201 | border-radius: 5px; | 198 | border-radius: 5px; |
| 202 | padding: .5em; | 199 | padding: .5em; |
| 203 | margin-bottom: 1em; | 200 | margin-bottom: 1em; |
| 201 | |||
| 202 | h4 { | ||
| 203 | margin-top: 0; | ||
| 204 | margin-bottom: 0.5em; | ||
| 205 | } | ||
| 206 | |||
| 207 | img { | ||
| 208 | max-width: 100%; | ||
| 209 | } | ||
| 210 | } | ||
| 211 | |||
| 212 | .image-uploads { | ||
| 213 | pre { | ||
| 214 | overflow: auto; | ||
| 215 | max-width: 100%; | ||
| 216 | } | ||
| 204 | } | 217 | } |
| 205 | 218 | ||
| 206 | .should-create-record-field { | 219 | .should-create-record-field { |
