File tree 2 files changed +11
-0
lines changed
packages/experiments-realm
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,11 @@ export class EmailField extends StringField {
69
69
<template >
70
70
{{#if @ model }}
71
71
<EntityDisplayWithIcon @ title ={{@ model }} @ underline ={{ false }} >
72
+ <: title >
73
+ <a href =' mailto:{{@ model }} ' rel =' noopener noreferrer' >
74
+ {{@ model }}
75
+ </a >
76
+ </: title >
72
77
<: icon >
73
78
<MailIcon class =' icon' />
74
79
</: icon >
@@ -78,6 +83,10 @@ export class EmailField extends StringField {
78
83
.icon {
79
84
color : var (--boxel-400 );
80
85
}
86
+ a :hover {
87
+ text-decoration : underline ;
88
+ color : inherit ;
89
+ }
81
90
< /style >
82
91
</template >
83
92
};
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ export class WebsiteField extends UrlField {
20
20
<template >
21
21
<EntityDisplayWithIcon >
22
22
<: title >
23
+ {{! Display only domain and path, unlike URLField's full URL representation }}
24
+ {{! Custom atom implementation for handling URL interactions }}
23
25
{{#if @ model }}
24
26
{{#if ( isValidUrl @ model) }}
25
27
<a href ={{@ model }} target =' _blank' rel =' noopener noreferrer' >
You can’t perform that action at this time.
0 commit comments