File tree Expand file tree Collapse file tree 1 file changed +14
-18
lines changed Expand file tree Collapse file tree 1 file changed +14
-18
lines changed Original file line number Diff line number Diff line change 11<template lang="html">
2- <section >
2+ <section :class = " { firefox: isFirefox() } " >
33 <div class =" history" >
44 <div
55 class =" message"
@@ -32,6 +32,10 @@ export default {
3232 methods: {
3333 getID (msg ) {
3434 return " msg-" + msg .hash ;
35+ },
36+ isFirefox () {
37+ // Browser detection of firefox
38+ return typeof InstallTrigger !== " undefined" ;
3539 }
3640 }
3741};
@@ -44,30 +48,22 @@ export default {
4448 overflow-x : hidden ;
4549 display : flex ;
4650 height : 100% ;
47- flex-direction : column ;
51+ flex-direction : column-reverse ;
4852}
4953
5054.message {
5155 margin-top : $spacer ;
5256}
5357
54- /*
55- Problem: FireFox just doesn't scroll on a flexbox with flex-direction:column-reverse.
56-
57- | Potential Solution | Negatives | Positives |
58- | ----------------------------- | ---------------------------- | --------------------------- |
59- | flex-direction:column-reverse | Doesn't work on FireFox. | Works on everything except |
60- | on .history | | FireFox perfectly. |
61- | ----------------------------- | ---------------------------- | --------------------------- |
62- | transform: scaleY(-1) | Scroll direction is reversed | https://open.spotify.com/tr |
63- | on .history and .message | (doesn't affect mobile); | ack/5foxQ24C0x7W0B2OD46AJg? |
64- | | it's just really dumb | si=joaaiGIsTES52UQVX5bNoQ |
58+ .firefox {
59+ .history {
60+ flex-direction : column !important ;
61+ }
6562
66- https://open.spotify.com/track/5foxQ24C0x7W0B2OD46AJg?si=joaaiGIsTES52UQVX5bNoQ
67- */
68- .history ,
69- .message {
70- transform : scaleY (-1 );
63+ .history ,
64+ .message {
65+ transform : scaleY (-1 );
66+ }
7167}
7268
7369.text {
You can’t perform that action at this time.
0 commit comments