Skip to content

Commit 2ca300e

Browse files
committed
Continued cleanup of status styling
1 parent c7227db commit 2ca300e

2 files changed

Lines changed: 22 additions & 19 deletions

File tree

src/sidepanel.ts

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class ArgoViewer extends LitElement {
4444
.search-container {
4545
margin: 16px 12px;
4646
height: 32px;
47-
background: #ece7f8;
4847
border-radius: 9999px;
4948
display: flex;
5049
align-items: center;
@@ -101,27 +100,22 @@ class ArgoViewer extends LitElement {
101100
}
102101
103102
.status-title {
103+
display: block;
104104
font-size: 12px;
105105
font-weight: 500;
106106
color: #6b6b6b;
107107
margin-bottom: 4px;
108108
}
109109
110-
.status-ready {
111-
font-size: 11px;
112-
font-weight: 500;
113-
color: #6b6b6b;
114-
}
115-
116-
.status-page-title {
110+
.status-content {
117111
font-size: 14px;
118112
font-weight: 500;
119113
color: #000;
120114
}
121115
122116
img.favicon {
123-
width: 20px !important;
124-
height: 20px !important;
117+
width: var(--md-icon-size) !important;
118+
height: var(--md-icon-size) !important;
125119
flex: 0 0 auto;
126120
object-fit: cover;
127121
border-radius: 4px;
@@ -578,7 +572,7 @@ class ArgoViewer extends LitElement {
578572
}
579573

580574
get notRecordingMessage() {
581-
return "Not Archiving this Tab";
575+
return "Archiving Disabled";
582576
}
583577

584578
renderStatusCard() {
@@ -622,7 +616,7 @@ class ArgoViewer extends LitElement {
622616
alt="Favicon"
623617
class="favicon"
624618
/>
625-
<span class="status-page-title"
619+
<span class="status-content"
626620
>${
627621
//@ts-expect-error - TS2339 - Property 'pageTitle' does not exist on type 'ArgoViewer'.
628622
truncateString(this.pageTitle)
@@ -664,7 +658,7 @@ class ArgoViewer extends LitElement {
664658
<md-icon filled style="color: var(--md-sys-color-primary);"
665659
>check_circle</md-icon
666660
>
667-
<span class="status-ready">All resources archived</span>
661+
<span class="status-content">All resources archived</span>
668662
</div>`
669663
: ""
670664
}
@@ -708,7 +702,9 @@ class ArgoViewer extends LitElement {
708702
if (this.pageUrl?.startsWith(this.extRoot)) {
709703
return html`
710704
<span class="status-title">Status</span>
711-
<p class="is-size-7">This page is part of the extension.</p>
705+
<p class="is-size-7 status-content">
706+
This page is part of the extension.
707+
</p>
712708
`;
713709
}
714710

@@ -717,7 +713,7 @@ class ArgoViewer extends LitElement {
717713
<md-icon filled style="color: var(--md-sys-color-secondary)"
718714
>folder_off</md-icon
719715
>
720-
<span class="status-ready">Can't archive this page.</span>
716+
<span class="status-content">Can't archive this page.</span>
721717
</div>`;
722718
}
723719

@@ -728,15 +724,21 @@ class ArgoViewer extends LitElement {
728724
<md-icon filled style="color: var(--md-sys-color-secondary)"
729725
>folder_off</md-icon
730726
>
731-
<span class="status-ready"
727+
<span class="status-content"
732728
>Archiving will start after the page reloads...</span
733729
>
734730
</div>`;
735731
}
736732

737-
return html` <span class="status-title">Status</span>
738-
<br />
739-
<p>${this.notRecordingMessage}</p>`;
733+
return html`
734+
<span class="status-title">Status</span>
735+
<div class="status-container">
736+
<md-icon filled style="color: var(--md-sys-color-secondary)"
737+
>folder_off</md-icon
738+
>
739+
<span class="status-content">${this.notRecordingMessage}</span>
740+
</div>
741+
`;
740742
}
741743

742744
renderSearch() {

static/sidepanel.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
--md-sys-color-background: white;
2020
--md-sys-color-surface-container: white;
2121
--md-elevated-card-container-color: white;
22+
--md-icon-size: 20px;
2223

2324
--md-sys-color-primary: rgb(220, 101, 3);
2425
--md-sys-color-surface-tint: rgb(154 70 0);

0 commit comments

Comments
 (0)