Skip to content

Commit

Permalink
Merge pull request #307 from swisstopo/fix/edit-icon
Browse files Browse the repository at this point in the history
Fix: Edit Icon
  • Loading branch information
vej-ananas authored Oct 17, 2024
2 parents 37a101f + 4de990c commit 7d58d9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class MenuBarComponent {
if (isPath('asset-admin/new')) {
return 'create-asset';
}
if (isPath('asset-admin') || isPath('admin')) {
if (path == 'asset-admin' || isPath('admin')) {
return 'options';
}
return null;
Expand Down
4 changes: 2 additions & 2 deletions libs/client-shared/src/lib/icons/edit.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const editIcon = {
data: `
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
<g transform="translate(2, 2)">
<path d="M1 9.99997H19M10 19V1" stroke-width="1.7" stroke-linecap="round"/>
<g transform="translate(3, 3)">
<path d="M11.4 3.40035L14.6 6.60042M16.3393 4.84999C16.7623 4.42712 16.9999 3.85354 17 3.25544C17.0001 2.65733 16.7626 2.0837 16.3397 1.66072C15.9168 1.23774 15.3433 1.00008 14.7452 1C14.1471 0.999925 13.5734 1.23745 13.1505 1.66032L2.47356 12.3398C2.28781 12.525 2.15045 12.753 2.07356 13.0038L1.01675 16.4855C0.996072 16.5546 0.99451 16.6281 1.01223 16.6981C1.02995 16.7681 1.06628 16.832 1.11739 16.8831C1.16849 16.9341 1.23245 16.9703 1.30248 16.9879C1.37251 17.0055 1.446 17.0039 1.51515 16.9831L4.99758 15.927C5.24812 15.8508 5.47613 15.7143 5.66159 15.5294L16.3393 4.84999Z" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/>
</g>
</svg>
`,
Expand Down

0 comments on commit 7d58d9e

Please sign in to comment.