Skip to content

Commit

Permalink
Fix cursor svg
Browse files Browse the repository at this point in the history
  • Loading branch information
slak44 committed Apr 18, 2024
1 parent c65cd5e commit e4b132f
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 20 deletions.
4 changes: 1 addition & 3 deletions .idea/artifacts/ckompiler_js_SNAPSHOT6.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions .idea/artifacts/ckompiler_jvm_SNAPSHOT6.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/modules/internals-explorer-backend.main.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion internals-explorer/ngsw-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"updateMode": "prefetch",
"resources": {
"files": [
"/assets/samples/**"
"/assets/samples/**",
"/assets/cursor.svg"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

width: 32px;
height: 32px;
background-image: url("/assets/cursor.svg");
background-image: var(--cursor-url);
background-size: 32px 32px;
pointer-events: none;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChangeDetectionStrategy, Component, HostBinding, Input } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CommonModule, Location } from '@angular/common';

@Component({
selector: 'cki-broadcaster-mouse',
Expand All @@ -25,4 +25,10 @@ export class BroadcasterMouseComponent {
@Input()
@HostBinding('style.--broadcaster-name')
public broadcasterName: string = '';

@HostBinding('style.--cursor-url')
public readonly cursorUrl: string = `url(${this.location.prepareExternalUrl('/assets/cursor.svg')})`;

constructor(private readonly location: Location) {
}
}

0 comments on commit e4b132f

Please sign in to comment.