Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple fixes #6954

Merged
merged 6 commits into from
May 16, 2022
Merged

Multiple fixes #6954

merged 6 commits into from
May 16, 2022

Conversation

elizavetaRa
Copy link
Member

@elizavetaRa elizavetaRa commented May 12, 2022

Description

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • fix unit tests

@update-docs
Copy link

update-docs bot commented May 12, 2022

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@elizavetaRa elizavetaRa force-pushed the upstream_fixes branch 2 times, most recently from 88dd943 to b3a0348 Compare May 12, 2022 11:54
@elizavetaRa
Copy link
Member Author

@pascalwengerter @fschade we did some small fixes across the app. Is it ok to create a cumulative issue & pr for them?

@elizavetaRa elizavetaRa marked this pull request as ready for review May 12, 2022 12:26
Copy link
Contributor

@pascalwengerter pascalwengerter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add some changelog items? In general most of it LGTM, added some minor suggestions. Happy to merge soon

packages/web-app-text-editor/src/App.vue Outdated Show resolved Hide resolved
height: calc(100% - 42px);
}

#text-editor-input {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use the oc-height-1-1 for this element also and remove the custom style rule? :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I set the class, it sets the div around <textarea> to 100% but not <textarea> itself. So the class passing would need to be implemented in ocTextarea for this purpose.

#text-editor-preview {
max-height: 80vh;
overflow-y: scroll;
}
#text-editor-input {
resize: vertical;
}
.editor-wrapper-height {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer working with a full-height parent element and paddings/margins instead. Do you think that could work?

Copy link
Member Author

@elizavetaRa elizavetaRa May 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the height is set 100% and the text is longer than the height of the textarea (scrollbar showing), the upper buttons div gets stagely cut by me, the only workaround I found was to subtract the height of the upper buttons, margins or paddings don't fix it
Screenshot from 2022-05-16 12-40-49

@@ -338,6 +338,7 @@ export default defineComponent({

&__body {
overflow-y: auto;
overflow-x: hidden;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this prevent?

Copy link
Member Author

@elizavetaRa elizavetaRa May 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pascalwengerter In case the email is long, the horizontal scroll appears. Happens to all emails at CERN, I described in #6973
Screenshot from 2022-05-13 16-28-42

@sonarcloud
Copy link

sonarcloud bot commented May 16, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@pascalwengerter pascalwengerter merged commit 1246561 into owncloud:master May 16, 2022
@kulmann kulmann mentioned this pull request May 25, 2022
25 tasks
@elizavetaRa elizavetaRa deleted the upstream_fixes branch May 31, 2023 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants