mirror of
https://github.com/Equicord/Equicord.git
synced 2025-05-11 09:55:40 +02:00
ChannelTabs: Fix MacOS Button Overlay
This commit is contained in:
parent
af820be201
commit
3668a774cb
2 changed files with 5 additions and 2 deletions
|
@ -20,6 +20,8 @@ const PlusSmallIcon = findComponentByCodeLazy("0v-5h5a1");
|
||||||
|
|
||||||
const cl = classNameFactory("vc-channeltabs-");
|
const cl = classNameFactory("vc-channeltabs-");
|
||||||
|
|
||||||
|
const isMac = navigator.platform.toLowerCase().startsWith("mac");
|
||||||
|
|
||||||
export default function ChannelsTabsContainer(props: BasicChannelTabsProps) {
|
export default function ChannelsTabsContainer(props: BasicChannelTabsProps) {
|
||||||
const [userId, setUserId] = useState("");
|
const [userId, setUserId] = useState("");
|
||||||
const { showBookmarkBar, widerTabsAndBookmarks } = settings.use(["showBookmarkBar", "widerTabsAndBookmarks"]);
|
const { showBookmarkBar, widerTabsAndBookmarks } = settings.use(["showBookmarkBar", "widerTabsAndBookmarks"]);
|
||||||
|
@ -66,6 +68,7 @@ export default function ChannelsTabsContainer(props: BasicChannelTabsProps) {
|
||||||
className={cl("container")}
|
className={cl("container")}
|
||||||
ref={ref}
|
ref={ref}
|
||||||
onContextMenu={e => ContextMenuApi.openContextMenu(e, () => <BasicContextMenu />)}
|
onContextMenu={e => ContextMenuApi.openContextMenu(e, () => <BasicContextMenu />)}
|
||||||
|
style={{ marginTop: isMac ? "28px" : "0" }}
|
||||||
>
|
>
|
||||||
<div className={cl("tab-container")}>
|
<div className={cl("tab-container")}>
|
||||||
{openedTabs.map((tab, i) =>
|
{openedTabs.map((tab, i) =>
|
||||||
|
|
|
@ -221,8 +221,8 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: "AppTitleBar",
|
find: "AppTitleBar",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=trailing:.{0,70}\(\i\.Fragment,{children:\[.*?)\]/,
|
match: /(?<=trailing:.{0,70}\(\i\.Fragment,{children:\[)/,
|
||||||
replace: ",$self.renderQuestButton()]"
|
replace: "$self.renderQuestButton(),"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue