fix: center-right align settings icons for plans/repos

This commit is contained in:
Gareth
2024-05-05 12:42:30 -07:00
parent 386f46a090
commit 982e2fb2cd
2 changed files with 11 additions and 3 deletions
+6
View File
@@ -21,3 +21,9 @@ pre
.visible-on-hover:hover .hidden-child
visibility: visible
.float-center-right
position: absolute
right: 0px
top: "50%"
transform: "translateY(-50%)"
+5 -3
View File
@@ -178,10 +178,11 @@ const getSidenavItems = (config: Config | null): MenuProps["items"] => {
<div className="backrest visible-on-hover">
{plan.id}{" "}
<Button
className="hidden-child"
className="hidden-child float-center-right"
type="text"
size="small"
shape="circle"
style={{ width: "30px", height: "30px" }}
icon={<SettingOutlined />}
onClick={async () => {
const { AddPlanModal } = await import("./AddPlanModal");
@@ -220,17 +221,18 @@ const getSidenavItems = (config: Config | null): MenuProps["items"] => {
<div className="backrest visible-on-hover">
{repo.id}{" "}
<Button
className="hidden-child"
type="text"
size="small"
shape="circle"
className="hidden-child float-center-right"
style={{ width: "30px", height: "30px" }}
icon={<SettingOutlined />}
onClick={async () => {
const { AddRepoModal } = await import("./AddRepoModal");
showModal(<AddRepoModal template={repo} />);
}}
/>
</div>
</div >
),
onClick: async () => {
const { RepoView } = await import("./RepoView");