Go to file
mummified-corroding-granny ea47902127 reduce scroll chaining on scrollable modals (#100)
Small lil PR to reduce/minimize overscroll (aka scroll chaining) when scrolling to the end of scrollable modals. Also relevant to mobile

Primary targets:
- GIFs scrollable tabs body
- EMOJI scrollable tabs body
- AWARDS scrollable tabs body

Should (TM) apply to other scrollable modals if the same HTML structure is used

Very important notes (TM):
* this does not apply to non-scrollable modals (e.g. delete and report)
* this only applies to the body of the modal where scrollable content is usually located (as per selector). Example of when it does not apply:
  * if we try to scroll near the search bar (e.g. on GIFs modal), we will still scroll the background
  * if we make the modal non-scrollable (e.g. limited search in emoji or its tabs), there is no overscroll protection

Why I chose this implementation:
* I have implemented this recently when all browsers started supporting it in the last months of 2022
* we cannot just disable the main body/html element scrollbar because it is likely to create headache-inducing content redraw situations
* minimalistic and it is a relatively modern way to do it
* about 300% better than some client-side javascript spaghetteh to avoid content redraws
* methodical alternative is to reimplement site-wide modals/scrolling (LMAO)
* I did not apply it to .modal-body because it does not work when we scroll in the empty area on the sides of the scrollable area (which I always do).

Reviewed-on: #100
Co-authored-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
Co-committed-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
2023-01-27 06:08:29 +00:00
files reduce scroll chaining on scrollable modals (#100) 2023-01-27 06:08:29 +00:00
migrations add button to blacklist users from restricted holes 2023-01-25 17:41:46 +02:00
.gitattributes convert repo from CRLF to LF 2022-10-04 17:24:58 +02:00
.gitignore remove node shit 2023-01-21 02:14:36 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2022-01-31 15:29:51 -08:00
Dockerfile restore my previous env structure, fuck off @everyone 2023-01-24 08:01:16 +02:00
LICENSE convert LICENSE to tabs 2022-12-06 15:34:09 +02:00
docker-compose.yml nginx changes 2022-12-12 09:44:17 +02:00
env_template restore my previous env structure, fuck off @everyone 2023-01-24 08:01:16 +02:00
gunicorn.conf.py remove redundant gunicorn conf 2023-01-20 08:18:36 +02:00
imei.sh use magick command 2022-12-16 23:21:47 +02:00
nginx-headers.conf make http://localhost work 2023-01-02 05:13:53 +02:00
nginx-serve-static.conf move CSP to nginx again 2022-12-31 08:38:59 +02:00
nginx.conf chat overhaul 2023-01-21 12:36:21 +02:00
pg_hba.conf mn 2022-05-05 01:09:46 +02:00
readme.md restore my previous env structure, fuck off @everyone 2023-01-24 08:01:16 +02:00
requirements.txt stop using mailgun 2023-01-21 02:19:07 +02:00
schema.sql sneed 2023-01-25 16:00:13 +00:00
seed-db.sql sneed 2023-01-27 00:00:16 +00:00
snappy_event_WPD.txt replace fistmas with christmas in snappy quotes 2022-12-25 19:17:15 +02:00
snappy_event_rDrama.txt replace fistmas with christmas in snappy quotes 2022-12-25 19:17:15 +02:00
snappy_rDrama.txt sneed 2023-01-25 20:00:12 +00:00
startup.sh add '#!/bin/bash' to all .sh files 2023-01-20 08:19:38 +02:00
startup_chat.sh remove node shit 2023-01-21 02:14:36 +02:00
startup_docker.sh fix 500 error on disconnect chat 2023-01-23 02:42:30 +02:00
supervisord.conf add nginx to docker 2022-10-04 21:48:52 +02:00
ubuntu_setup.sh restore my previous env structure, fuck off @everyone 2023-01-24 08:01:16 +02:00

readme.md

This code runs https://rdrama.net and https://watchpeopledie.tv

Installation (Windows/Linux/MacOS)

1- Install Docker on your machine. Docker installation

2- Run the following commands in the terminal:

git clone https://fsdfsd.net/rDrama/rDrama.git

cd rDrama

cp env_template .env

docker-compose down --rmi all --remove-orphans --volumes

docker-compose up

3- That's it! Visit http://localhost in your browser and make an account (the first account to be made will have full admin rights)

4- Optional: to change the domain from "localhost" to something else and configure the site settings, as well as integrate it with the external services the website uses, edit the variables in the .env file and then restart the docker container.