Skip to content

Commit

Permalink
Fix inconsistency between package list and package page copy icon opa…
Browse files Browse the repository at this point in the history
…cities.
  • Loading branch information
isoos committed Feb 12, 2025
1 parent 1b9b75b commit ed21b49
Show file tree
Hide file tree
Showing 44 changed files with 55 additions and 62 deletions.
3 changes: 2 additions & 1 deletion app/lib/frontend/templates/views/pkg/package_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ d.Node _item({
classes: ['packages-header'],
children: [
d.h3(classes: [
'packages-title'
'packages-title',
'pub-monochrome-icon-hoverable',
], children: [
d.a(href: url, text: name),
if (copyIcon != null) copyIcon,
Expand Down
5 changes: 4 additions & 1 deletion app/lib/frontend/templates/views/shared/detail/header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ d.Node detailHeaderNode({
d.div(
classes: ['detail-header-content-block'],
children: [
d.h1(classes: ['title'], child: titleNode),
d.h1(
classes: ['title', 'pub-monochrome-icon-hoverable'],
child: titleNode,
),
d.div(classes: ['metadata'], child: metadataNode),
if (tagsNode != null || likeCount != null)
d.div(
Expand Down
2 changes: 1 addition & 1 deletion app/test/frontend/golden/my_activity_log_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ <h3 class="foldable-button">
<img class="detail-header-image" src="https://www.gravatar.com/avatar/92c525024f1911332fe1d0f7dd750977?d=retro&amp;s=200=s400" alt="user profile picture" width="200" height="200"/>
</div>
<div class="detail-header-content-block">
<h1 class="title">admin</h1>
<h1 class="title pub-monochrome-icon-hoverable">admin</h1>
<div class="metadata">
<p>[email protected]</p>
<p>
Expand Down
2 changes: 1 addition & 1 deletion app/test/frontend/golden/my_liked_packages.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ <h3 class="foldable-button">
<img class="detail-header-image" src="https://www.gravatar.com/avatar/f1983c9193966b63c29c141c02db9a34?d=retro&amp;s=200=s400" alt="user profile picture" width="200" height="200"/>
</div>
<div class="detail-header-content-block">
<h1 class="title">user</h1>
<h1 class="title pub-monochrome-icon-hoverable">user</h1>
<div class="metadata">
<p>[email protected]</p>
<p>
Expand Down
6 changes: 3 additions & 3 deletions app/test/frontend/golden/my_packages.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ <h3 class="foldable-button">
<img class="detail-header-image" src="https://www.gravatar.com/avatar/f1983c9193966b63c29c141c02db9a34?d=retro&amp;s=200=s400" alt="user profile picture" width="200" height="200"/>
</div>
<div class="detail-header-content-block">
<h1 class="title">user</h1>
<h1 class="title pub-monochrome-icon-hoverable">user</h1>
<div class="metadata">
<p>[email protected]</p>
<p>
Expand Down Expand Up @@ -183,7 +183,7 @@ <h1 class="title">user</h1>
<div class="packages">
<div class="packages-item">
<div class="packages-header">
<h3 class="packages-title">
<h3 class="packages-title pub-monochrome-icon-hoverable">
<a href="/packages/oxygen">oxygen</a>
<span class="pkg-page-title-copy">
<img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-%%etag%%/img/content-copy-icon.svg" alt="copy &quot;oxygen: ^1.2.0&quot; to clipboard" width="18" height="18" title="Copy &quot;oxygen: ^1.2.0&quot; to clipboard" data-copy-content="oxygen: ^1.2.0" data-ga-click-event="copy-package-version"/>
Expand Down Expand Up @@ -266,7 +266,7 @@ <h3 class="packages-title">
</div>
<div class="packages-item">
<div class="packages-header">
<h3 class="packages-title">
<h3 class="packages-title pub-monochrome-icon-hoverable">
<a href="/packages/neon">neon</a>
<span class="pkg-page-title-copy">
<img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-%%etag%%/img/content-copy-icon.svg" alt="copy &quot;neon: ^1.0.0&quot; to clipboard" width="18" height="18" title="Copy &quot;neon: ^1.0.0&quot; to clipboard" data-copy-content="neon: ^1.0.0" data-ga-click-event="copy-package-version"/>
Expand Down
2 changes: 1 addition & 1 deletion app/test/frontend/golden/my_publishers.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ <h3 class="foldable-button">
<img class="detail-header-image" src="https://www.gravatar.com/avatar/f1983c9193966b63c29c141c02db9a34?d=retro&amp;s=200=s400" alt="user profile picture" width="200" height="200"/>
</div>
<div class="detail-header-content-block">
<h1 class="title">user</h1>
<h1 class="title pub-monochrome-icon-hoverable">user</h1>
<div class="metadata">
<p>[email protected]</p>
<p>
Expand Down
2 changes: 1 addition & 1 deletion app/test/frontend/golden/pkg_activity_log_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ <h3 class="foldable-button">
<div class="detail-container">
<div class="detail-header-outer-block">
<div class="detail-header-content-block">
<h1 class="title">
<h1 class="title pub-monochrome-icon-hoverable">
oxygen 1.2.0
<span class="pkg-page-title-copy">
<img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-%%etag%%/img/content-copy-icon.svg" alt="copy &quot;oxygen: ^1.2.0&quot; to clipboard" width="18" height="18" title="Copy &quot;oxygen: ^1.2.0&quot; to clipboard" data-copy-content="oxygen: ^1.2.0" data-ga-click-event="copy-package-version"/>
Expand Down
2 changes: 1 addition & 1 deletion app/test/frontend/golden/pkg_admin_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ <h3 class="foldable-button">
<div class="detail-container">
<div class="detail-header-outer-block">
<div class="detail-header-content-block">
<h1 class="title">
<h1 class="title pub-monochrome-icon-hoverable">
oxygen 1.2.0
<span class="pkg-page-title-copy">
<img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-%%etag%%/img/content-copy-icon.svg" alt="copy &quot;oxygen: ^1.2.0&quot; to clipboard" width="18" height="18" title="Copy &quot;oxygen: ^1.2.0&quot; to clipboard" data-copy-content="oxygen: ^1.2.0" data-ga-click-event="copy-package-version"/>
Expand Down
2 changes: 1 addition & 1 deletion app/test/frontend/golden/pkg_changelog_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h3 class="foldable-button">
<div class="detail-container">
<div class="detail-header-outer-block">
<div class="detail-header-content-block">
<h1 class="title">
<h1 class="title pub-monochrome-icon-hoverable">
oxygen 1.2.0
<span class="pkg-page-title-copy">
<img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-%%etag%%/img/content-copy-icon.svg" alt="copy &quot;oxygen: ^1.2.0&quot; to clipboard" width="18" height="18" title="Copy &quot;oxygen: ^1.2.0&quot; to clipboard" data-copy-content="oxygen: ^1.2.0" data-ga-click-event="copy-package-version"/>
Expand Down
2 changes: 1 addition & 1 deletion app/test/frontend/golden/pkg_example_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h3 class="foldable-button">
<div class="detail-container">
<div class="detail-header-outer-block">
<div class="detail-header-content-block">
<h1 class="title">
<h1 class="title pub-monochrome-icon-hoverable">
oxygen 1.2.0
<span class="pkg-page-title-copy">
<img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-%%etag%%/img/content-copy-icon.svg" alt="copy &quot;oxygen: ^1.2.0&quot; to clipboard" width="18" height="18" title="Copy &quot;oxygen: ^1.2.0&quot; to clipboard" data-copy-content="oxygen: ^1.2.0" data-ga-click-event="copy-package-version"/>
Expand Down
6 changes: 3 additions & 3 deletions app/test/frontend/golden/pkg_index_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ <h3 class="search-form-section-header foldable-button">
<div class="packages">
<div class="packages-item">
<div class="packages-header">
<h3 class="packages-title">
<h3 class="packages-title pub-monochrome-icon-hoverable">
<a href="https://api.dart.dev/library-page.html">dart:core</a>
</h3>
</div>
Expand All @@ -450,7 +450,7 @@ <h3 class="packages-title">
</div>
<div class="packages-item">
<div class="packages-header">
<h3 class="packages-title">
<h3 class="packages-title pub-monochrome-icon-hoverable">
<a href="/packages/oxygen">oxygen</a>
<span class="pkg-page-title-copy">
<img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-%%etag%%/img/content-copy-icon.svg" alt="copy &quot;oxygen: ^1.2.0&quot; to clipboard" width="18" height="18" title="Copy &quot;oxygen: ^1.2.0&quot; to clipboard" data-copy-content="oxygen: ^1.2.0" data-ga-click-event="copy-package-version"/>
Expand Down Expand Up @@ -533,7 +533,7 @@ <h3 class="packages-title">
</div>
<div class="packages-item">
<div class="packages-header">
<h3 class="packages-title">
<h3 class="packages-title pub-monochrome-icon-hoverable">
<a href="/packages/flutter_titanium">flutter_titanium</a>
<span class="pkg-page-title-copy">
<img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-%%etag%%/img/content-copy-icon.svg" alt="copy &quot;flutter_titanium: ^1.10.0&quot; to clipboard" width="18" height="18" title="Copy &quot;flutter_titanium: ^1.10.0&quot; to clipboard" data-copy-content="flutter_titanium: ^1.10.0" data-ga-click-event="copy-package-version"/>
Expand Down
2 changes: 1 addition & 1 deletion app/test/frontend/golden/pkg_install_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h3 class="foldable-button">
<div class="detail-container">
<div class="detail-header-outer-block">
<div class="detail-header-content-block">
<h1 class="title">
<h1 class="title pub-monochrome-icon-hoverable">
oxygen 1.2.0
<span class="pkg-page-title-copy">
<img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-%%etag%%/img/content-copy-icon.svg" alt="copy &quot;oxygen: ^1.2.0&quot; to clipboard" width="18" height="18" title="Copy &quot;oxygen: ^1.2.0&quot; to clipboard" data-copy-content="oxygen: ^1.2.0" data-ga-click-event="copy-package-version"/>
Expand Down
2 changes: 1 addition & 1 deletion app/test/frontend/golden/pkg_score_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h3 class="foldable-button">
<div class="detail-container">
<div class="detail-header-outer-block">
<div class="detail-header-content-block">
<h1 class="title">
<h1 class="title pub-monochrome-icon-hoverable">
oxygen 1.2.0
<span class="pkg-page-title-copy">
<img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-%%etag%%/img/content-copy-icon.svg" alt="copy &quot;oxygen: ^1.2.0&quot; to clipboard" width="18" height="18" title="Copy &quot;oxygen: ^1.2.0&quot; to clipboard" data-copy-content="oxygen: ^1.2.0" data-ga-click-event="copy-package-version"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h3 class="foldable-button">
<div class="detail-container">
<div class="detail-header-outer-block">
<div class="detail-header-content-block">
<h1 class="title">
<h1 class="title pub-monochrome-icon-hoverable">
oxygen 1.2.0
<span class="pkg-page-title-copy">
<img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-%%etag%%/img/content-copy-icon.svg" alt="copy &quot;oxygen: ^1.2.0&quot; to clipboard" width="18" height="18" title="Copy &quot;oxygen: ^1.2.0&quot; to clipboard" data-copy-content="oxygen: ^1.2.0" data-ga-click-event="copy-package-version"/>
Expand Down
2 changes: 1 addition & 1 deletion app/test/frontend/golden/pkg_show_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h3 class="foldable-button">
<div class="detail-container">
<div class="detail-header-outer-block">
<div class="detail-header-content-block">
<h1 class="title">
<h1 class="title pub-monochrome-icon-hoverable">
oxygen 1.2.0
<span class="pkg-page-title-copy">
<img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-%%etag%%/img/content-copy-icon.svg" alt="copy &quot;oxygen: ^1.2.0&quot; to clipboard" width="18" height="18" title="Copy &quot;oxygen: ^1.2.0&quot; to clipboard" data-copy-content="oxygen: ^1.2.0" data-ga-click-event="copy-package-version"/>
Expand Down
2 changes: 1 addition & 1 deletion app/test/frontend/golden/pkg_show_page_discontinued.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h3 class="foldable-button">
<div class="detail-container">
<div class="detail-header-outer-block">
<div class="detail-header-content-block">
<h1 class="title">
<h1 class="title pub-monochrome-icon-hoverable">
pkg 1.0.0
<span class="pkg-page-title-copy">
<img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-%%etag%%/img/content-copy-icon.svg" alt="copy &quot;pkg: ^1.0.0&quot; to clipboard" width="18" height="18" title="Copy &quot;pkg: ^1.0.0&quot; to clipboard" data-copy-content="pkg: ^1.0.0" data-ga-click-event="copy-package-version"/>
Expand Down
2 changes: 1 addition & 1 deletion app/test/frontend/golden/pkg_show_page_flutter_plugin.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h3 class="foldable-button">
<div class="detail-container">
<div class="detail-header-outer-block">
<div class="detail-header-content-block">
<h1 class="title">
<h1 class="title pub-monochrome-icon-hoverable">
flutter_titanium 1.10.0
<span class="pkg-page-title-copy">
<img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-%%etag%%/img/content-copy-icon.svg" alt="copy &quot;flutter_titanium: ^1.10.0&quot; to clipboard" width="18" height="18" title="Copy &quot;flutter_titanium: ^1.10.0&quot; to clipboard" data-copy-content="flutter_titanium: ^1.10.0" data-ga-click-event="copy-package-version"/>
Expand Down
2 changes: 1 addition & 1 deletion app/test/frontend/golden/pkg_show_page_publisher.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h3 class="foldable-button">
<div class="detail-container">
<div class="detail-header-outer-block">
<div class="detail-header-content-block">
<h1 class="title">
<h1 class="title pub-monochrome-icon-hoverable">
neon 1.0.0
<span class="pkg-page-title-copy">
<img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-%%etag%%/img/content-copy-icon.svg" alt="copy &quot;neon: ^1.0.0&quot; to clipboard" width="18" height="18" title="Copy &quot;neon: ^1.0.0&quot; to clipboard" data-copy-content="neon: ^1.0.0" data-ga-click-event="copy-package-version"/>
Expand Down
2 changes: 1 addition & 1 deletion app/test/frontend/golden/pkg_show_page_retracted.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h3 class="foldable-button">
<div class="detail-container">
<div class="detail-header-outer-block">
<div class="detail-header-content-block">
<h1 class="title">
<h1 class="title pub-monochrome-icon-hoverable">
pkg 1.0.0
<span class="pkg-page-title-copy">
<img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-%%etag%%/img/content-copy-icon.svg" alt="copy &quot;pkg: ^1.0.0&quot; to clipboard" width="18" height="18" title="Copy &quot;pkg: ^1.0.0&quot; to clipboard" data-copy-content="pkg: ^1.0.0" data-ga-click-event="copy-package-version"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h3 class="foldable-button">
<div class="detail-container">
<div class="detail-header-outer-block">
<div class="detail-header-content-block">
<h1 class="title">
<h1 class="title pub-monochrome-icon-hoverable">
pkg 2.0.0
<span class="pkg-page-title-copy">
<img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-%%etag%%/img/content-copy-icon.svg" alt="copy &quot;pkg: ^2.0.0&quot; to clipboard" width="18" height="18" title="Copy &quot;pkg: ^2.0.0&quot; to clipboard" data-copy-content="pkg: ^2.0.0" data-ga-click-event="copy-package-version"/>
Expand Down
2 changes: 1 addition & 1 deletion app/test/frontend/golden/pkg_show_version_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h3 class="foldable-button">
<div class="detail-container">
<div class="detail-header-outer-block">
<div class="detail-header-content-block">
<h1 class="title">
<h1 class="title pub-monochrome-icon-hoverable">
oxygen 1.2.0
<span class="pkg-page-title-copy">
<img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-%%etag%%/img/content-copy-icon.svg" alt="copy &quot;oxygen: ^1.2.0&quot; to clipboard" width="18" height="18" title="Copy &quot;oxygen: ^1.2.0&quot; to clipboard" data-copy-content="oxygen: ^1.2.0" data-ga-click-event="copy-package-version"/>
Expand Down
2 changes: 1 addition & 1 deletion app/test/frontend/golden/pkg_versions_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h3 class="foldable-button">
<div class="detail-container">
<div class="detail-header-outer-block">
<div class="detail-header-content-block">
<h1 class="title">
<h1 class="title pub-monochrome-icon-hoverable">
oxygen 1.2.0
<span class="pkg-page-title-copy">
<img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-%%etag%%/img/content-copy-icon.svg" alt="copy &quot;oxygen: ^1.2.0&quot; to clipboard" width="18" height="18" title="Copy &quot;oxygen: ^1.2.0&quot; to clipboard" data-copy-content="oxygen: ^1.2.0" data-ga-click-event="copy-package-version"/>
Expand Down
2 changes: 1 addition & 1 deletion app/test/frontend/golden/publisher_activity_log_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h3 class="foldable-button">
<div class="detail-container">
<div class="detail-header-outer-block">
<div class="detail-header-content-block">
<h1 class="title">example.com</h1>
<h1 class="title pub-monochrome-icon-hoverable">example.com</h1>
<div class="metadata">
<p>
<span class="detail-header-metadata-ref">
Expand Down
2 changes: 1 addition & 1 deletion app/test/frontend/golden/publisher_admin_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h3 class="foldable-button">
<div class="detail-container">
<div class="detail-header-outer-block">
<div class="detail-header-content-block">
<h1 class="title">example.com</h1>
<h1 class="title pub-monochrome-icon-hoverable">example.com</h1>
<div class="metadata">
<p>
<span class="detail-header-metadata-ref">
Expand Down
Loading

0 comments on commit ed21b49

Please sign in to comment.