Skip to content

Commit

Permalink
Make url fields in admin render as textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-hank committed Sep 28, 2022
1 parent 29b5743 commit b797d09
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). It uses [CalVer](https://calver.org/) as of May 2019.

## [22.09g](https://github.com/berkmancenter/lumendatabase/releases/tag/2022.09g) - 2022-09-28
### Changed
* Made url fields in the `admin` render as `textarea`.

## [22.09f](https://github.com/berkmancenter/lumendatabase/releases/tag/2022.09f) - 2022-09-27
### Fixed
* Made `textarea` fields in the `admin` wider generally.
Expand Down
12 changes: 8 additions & 4 deletions app/assets/javascripts/rails_admin/custom/notice_edit_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,12 @@ class NoticeEditForm {
'type': 'object',
'properties': {
'url': {
'type': 'string'
'type': 'string',
'format': 'html'
},
'url_original': {
'type': 'string'
'type': 'string',
'format': 'html'
}
}
}
Expand All @@ -93,10 +95,12 @@ class NoticeEditForm {
'type': 'object',
'properties': {
'url': {
'type': 'string'
'type': 'string',
'format': 'html'
},
'url_original': {
'type': 'string'
'type': 'string',
'format': 'html'
}
}
}
Expand Down
10 changes: 6 additions & 4 deletions app/assets/stylesheets/rails_admin/custom/theming.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,15 @@ aside#redaction-tools {
[id^='edit_'],
[id^='new_'] {
textarea {
height: 400px !important;
width: 700px !important;
height: 300px !important;
width: 500px !important;
max-width: 100%;
}

label {
display: block;
td.compact {
textarea {
max-width: 90%;
}
}
}

Expand Down

0 comments on commit b797d09

Please sign in to comment.