Skip to content

Conversation

@MarcelRobitaille
Copy link
Collaborator

Fixes #908

Nextcloud core is setting global unscoped styles on any div[contentedibtale]. Such a div is used by our markdown editor:
CodeMirror. Fix this by overwritting Nextcloud core's heavy-handed global styles.

Now, adding contenteditable="true" does not change the style inside our markdown editor:

Peek.2022-03-08.14-48.mp4

Nextcloud core is setting global unscoped styles on any
`div[contentedibtale]`. Such a div is used by our markdown editor:
CodeMirror. Fix this by overwritting Nextcloud core's heavy-handed
global styles.

Signed-off-by: Marcel Robitaille <[email protected]>
@seyfeb
Copy link
Collaborator

seyfeb commented Mar 11, 2022

Good catch! Just tested this directly on my phone and works as expected :)

@MarcelRobitaille What do you think about the width of the Name and URL fields? Should we make them 100% on mobile as well?

@MarcelRobitaille
Copy link
Collaborator Author

@seyfeb thanks for checking the PR.

What do you think about the width of the Name and URL fields? Should we make them 100% on mobile as well?

I think it would be consistent. I will try to add that too.

Ensure that the name and URL fields of the recipe edit form are still
full width on mobile. Overwrite Nextcloud core's heavy-handed global
styles.

Signed-off-by: Marcel Robitaille <[email protected]>
@codecov
Copy link

codecov bot commented Mar 12, 2022

Codecov Report

Merging #910 (e64b811) into master (db9986b) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #910      +/-   ##
==========================================
+ Coverage   20.08%   20.09%   +0.01%     
==========================================
  Files          20       20              
  Lines        1434     1438       +4     
==========================================
+ Hits          288      289       +1     
- Misses       1146     1149       +3     
Flag Coverage Δ
integration 5.91% <ø> (-0.02%) ⬇️
unittests 14.18% <ø> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
lib/Service/RecipeService.php 0.00% <0.00%> (ø)
lib/Service/DbCacheService.php 0.00% <0.00%> (ø)
lib/Controller/MainController.php 100.00% <0.00%> (ø)

@github-actions
Copy link

github-actions bot commented Mar 12, 2022

Unit Test Results

  22 files    22 suites   7m 30s ⏱️
  66 tests   66 ✔️ 0 💤 0
726 runs  726 ✔️ 0 💤 0

Results for commit e64b811.

♻️ This comment has been updated with latest results.

Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
@christianlupus christianlupus merged commit ddc9513 into nextcloud:master Mar 12, 2022
@MarcelRobitaille MarcelRobitaille deleted the 908-small-textarea-mobile branch March 12, 2022 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Small input fields in recipe creation on mobile device

3 participants