43
New frontends! (feddit.uk)
submitted 3 months ago by flamingos@feddit.uk to c/feddituk@feddit.uk

Happy to announce we've finally setup some alternative frontends.

Photon might be flaky, we're on a release candidate because of issue I was running into using it in Firefox. It's also what I'm using to write this. If you notice any issues, feel free to let us know.

you are viewing a single comment's thread
view the rest of the comments
[-] flamingos@feddit.uk 3 points 3 months ago* (last edited 3 months ago)

For anyone else annoyed by this, I've created a userscipt to auto expand the textarea. It's not perfect, but it's better than nothing.

// ==UserScript==
// @name        Autoexpand textarea
// @namespace   Violentmonkey Scripts
// @match       https://p.feddit.uk/*
// @grant       none
// @version     1.0
// @author      flamingos-cant
// @description 06/08/2024, 21:05:31
// ==/UserScript==

function updateHeight(textarea) {
  var text = textarea.target.value;
  var lineHeight = 1.25 * parseFloat(getComputedStyle(document.documentElement).fontSize);
  var taHeight = textarea.target.scrollHeight - 16 * 2;
  var lines = Math.max(Math.ceil(taHeight / lineHeight), 8);
  textarea.target.rows = lines;
}

setInterval((function () {
  let textareas = document.getElementsByTagName("textarea");
  for (let textarea of textareas) {
    textarea.addEventListener("input", updateHeight);
  }
}), 2000);
[-] Emperor@feddit.uk 2 points 3 months ago
this post was submitted on 05 Aug 2024
43 points (97.8% liked)

Feddit UK

0 readers
1 users here now

Community for the Feddit UK instance.
A place to log issues, and for the admins to communicate with everyone.

founded 1 year ago