Skip to content

Commit

Permalink
OHRM5X-1913: Fix OXD buzz post input not showing line breaks in firef…
Browse files Browse the repository at this point in the history
…ox (#659)

* OHRM5X-1894: Bump version to 1.0.8
  • Loading branch information
Chamara Abesinghe committed Dec 22, 2022
1 parent 5b55cc4 commit 5b1fd88
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/package.json
@@ -1,6 +1,6 @@
{
"name": "oxd-components",
"version": "1.0.8-alpha.1",
"version": "1.0.8",
"license": "GPL-3.0",
"scripts": {
"test:unit": "vue-cli-service test:unit",
Expand Down
5 changes: 5 additions & 0 deletions components/src/core/components/Buzz/BuzzPostInput.vue
Expand Up @@ -125,9 +125,14 @@ export default defineComponent({
// scrollHeight is not calculated properly with
// explicit heights. first set element height to auto
// then calculate scrollheight and set element height
textArea.value.removeAttribute('style');
textArea.value.style.height = 'auto';
if (!textArea.value.value) {
textArea.value.style.height = '30px';
textArea.value.style.overflow = 'hidden';
textArea.value.style.whiteSpace = 'nowrap';
textArea.value.style.textOverflow = 'ellipsis';
} else if (textArea.value.scrollHeight < 400) {
textArea.value.style.height = textArea.value.scrollHeight + 'px';
textArea.value.style.overflowY = 'hidden';
Expand Down
1 change: 1 addition & 0 deletions components/src/core/components/Buzz/buzz-post-input.scss
Expand Up @@ -31,6 +31,7 @@
width: 98%;
resize: none;
text-align: justify;
white-space: pre-wrap;
word-break: break-word;
box-sizing: border-box;
padding: $oxd-buzz-post-input-margin;
Expand Down
1 change: 1 addition & 0 deletions components/src/core/components/Tab/tab-container.scss
Expand Up @@ -19,6 +19,7 @@
@import 'variables';

.oxd-tab {
touch-action: pan-y !important;
&-bar {
padding: $oxd-tab-bar-padding;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "oxd",
"license": "GPL-3.0",
"version": "1.0.8-alpha.1",
"version": "1.0.8",
"private": true,
"workspaces": [
"components",
Expand Down

0 comments on commit 5b1fd88

Please sign in to comment.