CallTimer: fix overflow when using aligned chat input
Co-Authored-By: sadan4 <117494111+sadan4@users.noreply.github.com> Co-Authored-By: God
This commit is contained in:
parent
8789973bf5
commit
65c85a5222
2 changed files with 7 additions and 0 deletions
4
src/plugins/callTimer/alignedChatInputFix.css
Normal file
4
src/plugins/callTimer/alignedChatInputFix.css
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
.align-chat-input [class*="panels"] [class*="inner_"],
|
||||||
|
.align-chat-input [class*="rtcConnectionStatus_"] {
|
||||||
|
height: fit-content;
|
||||||
|
}
|
||||||
|
|
@ -23,6 +23,8 @@ import { useTimer } from "@utils/react";
|
||||||
import definePlugin, { OptionType } from "@utils/types";
|
import definePlugin, { OptionType } from "@utils/types";
|
||||||
import { React } from "@webpack/common";
|
import { React } from "@webpack/common";
|
||||||
|
|
||||||
|
import alignedChatInputFix from "./alignedChatInputFix.css";
|
||||||
|
|
||||||
function formatDuration(ms: number) {
|
function formatDuration(ms: number) {
|
||||||
// here be dragons (moment fucking sucks)
|
// here be dragons (moment fucking sucks)
|
||||||
const human = Settings.plugins.CallTimer.format === "human";
|
const human = Settings.plugins.CallTimer.format === "human";
|
||||||
|
|
@ -50,6 +52,7 @@ export default definePlugin({
|
||||||
name: "CallTimer",
|
name: "CallTimer",
|
||||||
description: "Adds a timer to vcs",
|
description: "Adds a timer to vcs",
|
||||||
authors: [Devs.Ven],
|
authors: [Devs.Ven],
|
||||||
|
managedStyle: alignedChatInputFix,
|
||||||
|
|
||||||
startTime: 0,
|
startTime: 0,
|
||||||
interval: void 0 as NodeJS.Timeout | undefined,
|
interval: void 0 as NodeJS.Timeout | undefined,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue