Skip to content

Commit d03c700

Browse files
committed
Merge branch 'dev'
2 parents 0ae7129 + 49d6f62 commit d03c700

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

client/src/components/MessageHistory.vue

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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 {

0 commit comments

Comments
 (0)