Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
### Fixed
- Reduce complex coupling between event handlers in EditInputGroup.vue
[#901](https://github.com/nextcloud/cookbook/pull/901) @MarcelRobitaille
- Fix bug in NC Vue config that switches input fields to be not full width on mobile
[#910](https://github.com/nextcloud/cookbook/pull/910) @MarcelRobitaille

### Documentation
- Introduction about how to start coding
Expand Down
21 changes: 21 additions & 0 deletions src/components/EditInputField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ fieldset > label {

fieldset > input,
fieldset > textarea {
width: revert;
flex: 1;
}

Expand All @@ -225,4 +226,24 @@ fieldset > .editor {
border-radius: 2px;
resize: vertical;
}

/*
Hack to overwrite the heavy-handed global unscoped styles of Nextcloud core
that cause our markdown editor CodeMirror to behave strangely on mobile
See: https://github.com/nextcloud/cookbook/issues/908

Use /deep/ because >>> did not work for some reason
*/
.editor /deep/ div[contenteditable="true"] {
width: revert;
min-height: revert;
padding: revert;
border: revert;
margin: revert;
background-color: revert;
border-radius: revert;
color: revert;
font-size: revert;
outline: revert;
}
</style>