Fix "moved" badge alignment

This commit is contained in:
Rūdolfs Ošiņš
2023-12-01 18:06:07 +01:00
parent 095b99fcec
commit 90cfaca9be
3 changed files with 6 additions and 4 deletions
+1
View File
@@ -32,6 +32,7 @@
display: flex;
gap: 0.5rem;
margin-right: 1rem;
align-items: center;
}
.right {
+1 -1
View File
@@ -159,7 +159,7 @@
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M5.65087 2.66272C5.85202 2.44576 6.17816 2.44576 6.37931 2.66272L10.0474 6.15876C10.6509 6.80964 10.6509 7.86491 10.0474 8.51579L6.37931 12.3373C6.17816 12.5542 5.85202 12.5542 5.65087 12.3373C5.44971 12.1203 5.44971 11.7686 5.65087 11.5516L9.31896 7.73011C9.52011 7.51315 9.52011 7.1614 9.31896 6.94444L5.65087 3.44839C5.44971 3.23143 5.44971 2.87968 5.65087 2.66272Z" />
d="M5.81752 3.16272C6.01868 2.94576 6.34481 2.94576 6.54597 3.16272L10.2141 6.65876C10.8175 7.30964 10.8175 8.36491 10.2141 9.01579L6.54597 12.8373C6.34481 13.0542 6.01868 13.0542 5.81752 12.8373C5.61637 12.6203 5.61637 12.2686 5.81752 12.0516L9.48562 8.23011C9.68677 8.01315 9.68677 7.6614 9.48562 7.44444L5.81752 3.94839C5.61637 3.73143 5.61637 3.37968 5.81752 3.16272Z" />
{:else if name === "chevron-up"}
<path
fill-rule="evenodd"
+4 -3
View File
@@ -380,9 +380,10 @@
<File collapsable {expanded}>
<svelte:fragment slot="left-header">
{#if (headerBadgeCaption === "moved" || headerBadgeCaption === "copied") && oldFilePath}
<span>
<FilePath filenameWithPath={oldFilePath} /> → <FilePath
filenameWithPath={filePath} />
<span style="display: flex; align-items: center; flex-wrap: wrap;">
<FilePath filenameWithPath={oldFilePath} />
<span style:padding="0 0.5rem">→</span>
<FilePath filenameWithPath={filePath} />
</span>
{:else}
<FilePath filenameWithPath={filePath} />