fix: Align article title and copy button, correct icon font
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -82,8 +82,10 @@ function Article({ cache }) {
|
||||
<meta name="robots" content="noindex" />
|
||||
</Helmet>
|
||||
|
||||
<div className='article-title'>
|
||||
<h1>{story.title}</h1>
|
||||
<button className='copy-button' onClick={copyLink}>{copyButtonText}</button>
|
||||
</div>
|
||||
|
||||
<div className='info'>
|
||||
Source: {sourceLink(story)}
|
||||
|
||||
@@ -121,10 +121,16 @@ span.source {
|
||||
border-bottom: 1px solid #222222;
|
||||
}
|
||||
|
||||
.article-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 0.67em;
|
||||
margin-bottom: 0.67em;
|
||||
}
|
||||
|
||||
.article h1 {
|
||||
font-size: 1.6rem;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.article h2 {
|
||||
@@ -264,7 +270,7 @@ span.source {
|
||||
}
|
||||
|
||||
.copy-button {
|
||||
font: 2rem/1 'icomoon2';
|
||||
font: 2rem/1 'icomoon';
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
|
||||
Reference in New Issue
Block a user