diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 271e56ae21..db481c1927 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -4479,11 +4479,8 @@ module.exports = (_ => { }) : meta ] }), - controls.length && BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.Flex, { - align: InternalComponents.LibraryComponents.Flex.Align.CENTER, - justify: InternalComponents.LibraryComponents.Flex.Justify.CENTER, - grow: 0, - shrink: 0, + controls.length && BDFDB.ReactUtils.createElement("div", { + className: BDFDB.disCN._repoheadercontrols, children: controls }) ] diff --git a/Library/_res/BDFDB.data.json b/Library/_res/BDFDB.data.json index 21daa2b992..8ba7e1b604 100644 --- a/Library/_res/BDFDB.data.json +++ b/Library/_res/BDFDB.data.json @@ -303,9 +303,10 @@ "avatarDisabled": "disabled-6G33EE", "badge": "badge-7R_W3s", "badgeAvatar": "avatar-hF52Er", - "bdaRepoEntry": "entry-9JnAPs", - "bdaRepoListHeader": "repoHeader-2KfNvH", - "bdaRepoListWrapper": "repoList-9JnAPs", + "bdRepoEntry": "entry-9JnAPs", + "bdRepoHeaderControls": "controls-18FQsW", + "bdRepoListHeader": "repoHeader-2KfNvH", + "bdRepoListWrapper": "repoList-9JnAPs", "cardInner": "inner-OP_8zd", "cardWrapper": "card-rT4Wbb", "charCounter": "counter-uAzbKp", @@ -1057,15 +1058,16 @@ "_repocontrolsbutton": ["BDrepo", "bdaControlsButton"], "_repodescription": ["BDrepo", "bdaDescription"], "_repodescriptionwrap": ["BDrepo", "bdaDescriptionWrap"], - "_repoentry": ["BDFDB", "bdaRepoEntry"], + "_repoentry": ["BDFDB", "bdRepoEntry"], "_repofolderbutton": ["BDrepo", "bdPfbtn"], "_repofooter": ["BDrepo", "bdaFooter"], "_repoheader": ["BDrepo", "bdaHeader"], + "_repoheadercontrols": ["BDFDB", "bdRepoHeaderControls"], "_repoheadertitle": ["BDrepo", "bdaHeaderTitle"], "_repoicon": ["BDrepo", "bdIcon"], "_repolist": ["BDrepo", "bdaSlist"], - "_repolistheader": ["BDFDB", "bdaRepoListHeader"], - "_repolistwrapper": ["BDFDB", "bdaRepoListWrapper"], + "_repolistheader": ["BDFDB", "bdRepoListHeader"], + "_repolistwrapper": ["BDFDB", "bdRepoListWrapper"], "_repolink": ["BDrepo", "bdaLink"], "_repolinks": ["BDrepo", "bdaLinks"], "_repometa": ["BDrepo", "bdMeta"], diff --git a/Library/_res/BDFDB.raw.css b/Library/_res/BDFDB.raw.css index 9f5c534aa0..dbf9cae086 100644 --- a/Library/_res/BDFDB.raw.css +++ b/Library/_res/BDFDB.raw.css @@ -801,9 +801,13 @@ img:not([src]), img[src=""], img[src="null"] { justify-content: center; cursor: pointer; } -[REPLACE_CLASS__repolistwrapper] [REPLACE_CLASS__repoentry] [REPLACE_CLASS__repoheader] [REPLACE_CLASS__repocontrolsbutton] { - margin-left: 10px; +[REPLACE_CLASS__repolistwrapper] [REPLACE_CLASS__repoentry] [REPLACE_CLASS__repoheadercontrols] { + display: flex; + align-items: center; + justify-content: center; + flex: 0 0 auto; } +[REPLACE_CLASS__repolistwrapper] [REPLACE_CLASS__repoentry] [REPLACE_CLASS__repoheadercontrols] > *, [REPLACE_CLASS__repolistwrapper] [REPLACE_CLASS__repoentry] [REPLACE_CLASS__repocontrols] > * { margin-left: 10px; }