This commit is contained in:
trashtemp 2022-01-14 18:14:05 +01:00
commit d6a541f380
No known key found for this signature in database
GPG key ID: D1F0DB65081B0FC6
5 changed files with 20 additions and 3 deletions

7
.github/pull_request_template.md vendored Normal file
View file

@ -0,0 +1,7 @@
## Please make sure to check the following tasks before opening and submitting a PR
* [ ] I understand and have followed the [contribution guide](https://github.com/revoltchat/revolt/discussions/282)
* [ ] I have tested my changes locally and they are working as intended
* [ ] These changes do not have any notable side effects on other Revolt projects
* [ ] (optional) I have opened a pull request on [the translation repository](https://github.com/revoltchat/translations)
* [ ] I have included screenshots to demonstrate my changes

View file

@ -97,6 +97,7 @@
code {
color: white;
font-size: 90%;
padding-right: 1em;
background: var(--block);
border-radius: var(--border-radius);
font-family: var(--monospace-font), monospace;

View file

@ -21,6 +21,7 @@ export function FormLogin() {
if (browser) {
let { name } = browser;
const { os } = browser;
let isiPad;
if (window.isNative) {
friendly_name = `Revolt Desktop on ${os}`;
} else {
@ -28,8 +29,12 @@ export function FormLogin() {
name = "safari";
} else if (name === "fxios") {
name = "firefox";
} else if (name === "crios") {
name = "chrome";
}
friendly_name = `${name} on ${os}`;
if (os === "Mac OS" && navigator.maxTouchPoints > 0)
isiPad = true;
friendly_name = `${name} on ${isiPad ? "iPadOS" : os}`;
}
} else {
friendly_name = "Unknown Device";

View file

@ -92,7 +92,7 @@ export function Sessions() {
return <Android size={14} />;
case /mac.*os/i.test(name):
return <Macos size={14} />;
case /ios/i.test(name):
case /i(Pad)os/i.test(name):
return <Apple size={14} />;
case /windows/i.test(name):
return <Windows size={14} />;

View file

@ -106,7 +106,11 @@ export const Members = ({ server }: Props) => {
const members = useMemo(
() =>
query
? data?.filter((x) => x.user?.username.includes(query))
? data?.filter((x) =>
x.user?.username
.toLowerCase()
.includes(query.toLowerCase()),
)
: data,
[data, query],
);