Skip to content

Commit 0704488

Browse files
committed
fix: update notification UI elements and styles for consistency
1 parent 1aa7afb commit 0704488

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/components/update-notification.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ export class UpdateNotification {
3232
<div class="update-notification">
3333
<div class="update-content">
3434
<div class="update-icon">
35-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
36-
<path d="M11 2.05C11 1.47 11.47 1 12.05 1C16.05 1 19.05 4.47 19.05 8.47C19.05 9.53 18.05 10.53 17 10.53H15V12.53C15 13.58 14 14.58 13 14.58H11V16.58C11 17.63 10 18.63 9 18.63H7V20.63C7 21.68 6 22.68 5 22.68H3C2.45 22.68 2 22.23 2 21.68V19.68C2 19.13 2.45 18.68 3 18.68H5V16.63C5 16.08 5.45 15.63 6 15.63H9V13.58C9 13.03 9.45 12.58 10 12.58H13V10.53H17C19.21 10.53 21.05 8.69 21.05 6.47C21.05 3.35 18.7 1 15.58 1C11.47 1 11 2.05 11 2.05ZM17 8.53C17 9.58 16 10.58 15 10.58C14 10.58 13 9.58 13 8.53C13 7.48 14 6.48 15 6.48C16 6.48 17 7.48 17 8.53Z" fill="currentColor"/>
37-
</svg>
35+
<i class="ri-lightbulb-flash-line"></i>
3836
</div>
3937
<span class="update-message">Update available</span>
4038
<span class="update-version"></span>
@@ -43,7 +41,7 @@ export class UpdateNotification {
4341
Update via Homebrew
4442
</button>
4543
<button class="update-btn update-btn-secondary" data-action="dismiss">
46-
Skip this release
44+
Skip release
4745
</button>
4846
</div>
4947
</div>
@@ -69,7 +67,7 @@ export class UpdateNotification {
6967
this.injectStyles();
7068

7169
// Add to DOM but hidden
72-
this.container.style.display = 'none';
70+
// this.container.style.display = 'none';
7371
document.body.appendChild(this.container);
7472

7573
// Bind button events
@@ -267,7 +265,7 @@ export class UpdateNotification {
267265
@media (max-width: 768px) {
268266
.update-notification-container {
269267
left: 0 !important;
270-
top: 20px;
268+
top: 30px;
271269
}
272270
273271
.update-notification {
@@ -482,7 +480,7 @@ export class UpdateNotification {
482480
}
483481

484482
this.currentVersion = updateInfo.version;
485-
483+
486484
const versionElement = this.container.querySelector('.update-version');
487485
if (versionElement) {
488486
versionElement.textContent = `Version ${updateInfo.version}`;

0 commit comments

Comments
 (0)