Skip to content

Commit 611a373

Browse files
committed
Improve page icon styling
1 parent 5e99022 commit 611a373

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/components/page-icon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const PageIcon: React.FC<AssetProps> = ({
5151
<span
5252
className={classNames(
5353
className,
54+
"notion-emoji",
5455
big ? "notion-page-icon-cover" : "notion-page-icon"
5556
)}
5657
role="img"

src/styles.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@
180180
font-size: 1.25em;
181181
margin-top: 1em;
182182
}
183+
.notion-emoji {
184+
font-family: "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji",
185+
"Segoe UI Symbol";
186+
}
183187
.notion-page-cover {
184188
display: block;
185189
object-fit: cover;
@@ -279,7 +283,7 @@ img.notion-page-icon-offset {
279283
.notion-page-icon {
280284
font-size: 1.1em;
281285
margin-right: 4px;
282-
margin-top: 2px;
286+
margin-top: 1px;
283287
margin-left: 2px;
284288
}
285289
img.notion-page-icon {

0 commit comments

Comments
 (0)