about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorchr <chr@cybre.space>2021-03-01 22:44:37 -0800
committerchr <chr@cybre.space>2021-03-01 22:44:37 -0800
commit16c31821d23713a50dfaa62f282e342d3963a7a1 (patch)
tree4da47736387590e4b1c920556dfad62d39da1569 /app/javascript
parent63f8176496e98487356cb5891f997eacbbfe9b6e (diff)
parent9a43dce739e4d42cab2f98ba4bf0ce13f8ba0d7f (diff)
Merge branch 'feature_longer_bios' into cybrespace-3.3
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/packs/public.js19
1 files changed, 2 insertions, 17 deletions
diff --git a/app/javascript/packs/public.js b/app/javascript/packs/public.js
index b2afe3fd6..3ff665f2a 100644
--- a/app/javascript/packs/public.js
+++ b/app/javascript/packs/public.js
@@ -148,7 +148,6 @@ function main() {
     delegate(document, '.custom-emoji', 'mouseover', getEmojiAnimationHandler('data-original'));
     delegate(document, '.custom-emoji', 'mouseout', getEmojiAnimationHandler('data-static'));
 
-<<<<<<< HEAD
     delegate(document, '.status__content__spoiler-link', 'click', function() {
       const statusEl = this.parentNode.parentNode;
 
@@ -168,26 +167,12 @@ function main() {
       const message = (statusEl.dataset.spoiler === 'expanded') ? (messages['status.show_less'] || 'Show less') : (messages['status.show_more'] || 'Show more');
       spoilerLink.textContent = (new IntlMessageFormat(message, locale)).format();
     });
-=======
-    if (document.body.classList.contains('with-modals')) {
-      const scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
-      const scrollbarWidthStyle = document.createElement('style');
-      scrollbarWidthStyle.id = 'scrollbar-width';
-      document.head.appendChild(scrollbarWidthStyle);
-      scrollbarWidthStyle.sheet.insertRule(`body.with-modals--active { margin-right: ${scrollbarWidth}px; }`, 0);
-    }
-
-    [].forEach.call(document.querySelectorAll('[data-component="Card"]'), (content) => {
-      const props = JSON.parse(content.getAttribute('data-props'));
-      ReactDOM.render(<CardContainer locale={locale} {...props} />, content);
-    });
 
     if (document.fonts && document.fonts.ready) {
       document.fonts.ready.then(sizeBioText);
     } else {
       sizeBioText();
     }
->>>>>>> Bio length -> 500 characters
   });
 
   delegate(document, '.webapp-btn', 'click', ({ target, button }) => {
@@ -321,12 +306,12 @@ function main() {
 
   delegate(document, '#account_note', 'input', sizeBioText);
 
-  function sizeBioText() {
+  function s500 izeBioText() {
     const noteCounter = document.querySelector('.note-counter');
     const bioTextArea = document.querySelector('#account_note');
 
     if (noteCounter) {
-      noteCounter.textContent = 500 - length(bioTextArea.value);
+      noteCounter.textContent = 1024 - length(bioTextArea.value);
     }
 
     if (bioTextArea) {