mirror of
https://github.com/Equicord/Equicord.git
synced 2025-05-10 17:35:37 +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 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) =>
|
||||
|
|
|
@ -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(),"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue