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:
Vendicated 2025-09-03 04:26:33 +02:00
parent 8789973bf5
commit 65c85a5222
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,4 @@
.align-chat-input [class*="panels"] [class*="inner_"],
.align-chat-input [class*="rtcConnectionStatus_"] {
height: fit-content;
}

View file

@ -23,6 +23,8 @@ import { useTimer } from "@utils/react";
import definePlugin, { OptionType } from "@utils/types";
import { React } from "@webpack/common";
import alignedChatInputFix from "./alignedChatInputFix.css";
function formatDuration(ms: number) {
// here be dragons (moment fucking sucks)
const human = Settings.plugins.CallTimer.format === "human";
@ -50,6 +52,7 @@ export default definePlugin({
name: "CallTimer",
description: "Adds a timer to vcs",
authors: [Devs.Ven],
managedStyle: alignedChatInputFix,
startTime: 0,
interval: void 0 as NodeJS.Timeout | undefined,