Move popover padding into the component

This makes sure all popovers are styled the same way.
This commit is contained in:
Rūdolfs Ošiņš
2023-11-23 10:20:28 +01:00
parent b8408db4f1
commit 6d7d7660d5
3 changed files with 3 additions and 8 deletions
+1
View File
@@ -28,6 +28,7 @@
position: relative; position: relative;
right: 1rem; right: 1rem;
z-index: 10; z-index: 10;
padding: 1rem;
} }
</style> </style>
@@ -50,10 +50,7 @@
<IconSmall name="branch" /> <IconSmall name="branch" />
<div class="identifier">{project.defaultBranch}</div> <div class="identifier">{project.defaultBranch}</div>
</Button> </Button>
<div <div class="txt-small" slot="popover">
class="txt-small"
style:padding="0.5rem 0.5rem 0.5rem 0.75rem"
slot="popover">
<div style:margin-bottom="1rem"> <div style:margin-bottom="1rem">
You are currently browsing the canonical branch. You are currently browsing the canonical branch.
</div> </div>
+1 -4
View File
@@ -109,10 +109,7 @@
{pluralize("contributor", tree.stats.contributors)} {pluralize("contributor", tree.stats.contributors)}
</div> </div>
</Button> </Button>
<div <div class="txt-small" slot="popover">
class="txt-small"
style:padding="0.5rem 0.5rem 0.5rem 0.75rem"
slot="popover">
<div style:margin-bottom="1rem">Coming soon.</div> <div style:margin-bottom="1rem">Coming soon.</div>
<div>Listing all contributors is not yet implemented.</div> <div>Listing all contributors is not yet implemented.</div>
</div> </div>