ChannelTabs: Fix MacOS Button Overlay

This commit is contained in:
thororen1234 2025-05-08 13:13:05 -04:00
parent af820be201
commit 3668a774cb
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View file

@ -20,6 +20,8 @@ const PlusSmallIcon = findComponentByCodeLazy("0v-5h5a1");
const cl = classNameFactory("vc-channeltabs-");
const isMac = navigator.platform.toLowerCase().startsWith("mac");
export default function ChannelsTabsContainer(props: BasicChannelTabsProps) {
const [userId, setUserId] = useState("");
const { showBookmarkBar, widerTabsAndBookmarks } = settings.use(["showBookmarkBar", "widerTabsAndBookmarks"]);
@ -66,6 +68,7 @@ export default function ChannelsTabsContainer(props: BasicChannelTabsProps) {
className={cl("container")}
ref={ref}
onContextMenu={e => ContextMenuApi.openContextMenu(e, () => <BasicContextMenu />)}
style={{ marginTop: isMac ? "28px" : "0" }}
>
<div className={cl("tab-container")}>
{openedTabs.map((tab, i) =>

View file

@ -221,8 +221,8 @@ export default definePlugin({
{
find: "AppTitleBar",
replacement: {
match: /(?<=trailing:.{0,70}\(\i\.Fragment,{children:\[.*?)\]/,
replace: ",$self.renderQuestButton()]"
match: /(?<=trailing:.{0,70}\(\i\.Fragment,{children:\[)/,
replace: "$self.renderQuestButton(),"
}
}
],