Skip to content

Commit 9c1e447

Browse files
committed
fix button mode for #sync button + simplify css
1 parent 1c7be73 commit 9c1e447

File tree

3 files changed

+11
-22
lines changed

3 files changed

+11
-22
lines changed

src/manage.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ <h1 i18n="styleManager"></h1>
228228
<i class=i-plus></i>
229229
</button>
230230
</a>
231-
232231
<div id="update-all">
233232
<template data-id="updateAll">
234233
<button id="apply-all-updates" i18n="applyAllUpdates"></button>
@@ -237,8 +236,7 @@ <h1 i18n="styleManager"></h1>
237236
</template>
238237
</div>
239238

240-
241-
<div id="backup" class="flex wrap center-items">
239+
<div id="backup" class="flex wrap">
242240
<button id="sync-styles" class="icon flex center-items" i18n="title:optionsCustomizeSync">
243241
<img hidden>
244242
<i class=i-cloud></i>

src/manage/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ function initSyncButton(sync) {
5959
const img = el.$('img');
6060
const msg = drive ? syncUtil.getStatusText(val) : '';
6161
el.title = t('optionsCustomizeSync');
62+
el.classList.toggle('icon', !hasFav);
6263
$toggleDataset(el, 'cloud', drive);
6364
elMsg.textContent = msg === syncUtil.pending || msg === syncUtil.connected ? '' : msg;
6465
img.hidden = !hasFav;

src/manage/manage.css

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -133,19 +133,15 @@ h1 {
133133
}
134134
}
135135
}
136-
#backup {
137-
$gap: $iconGapY;
138-
margin: calc($pad/4) -$gap 0 0;
139-
> * {
140-
margin: 0 $gap $gap 0;
141-
}
142-
p {
143-
word-break: break-word;
144-
font-size: smaller;
145-
user-select: text;
146-
color: var(--accent-1);
147-
margin-left: 4px;
148-
}
136+
}
137+
#backup {
138+
gap: $iconGapY;
139+
p {
140+
word-break: break-word;
141+
font-size: smaller;
142+
user-select: text;
143+
color: var(--accent-1);
144+
margin-left: 4px;
149145
}
150146
}
151147
#backup-hint {
@@ -167,9 +163,6 @@ h1 {
167163
white-space: normal;
168164
text-align: left;
169165
}
170-
#add-style {
171-
margin-right: 1em;
172-
}
173166
#sync-styles {
174167
&[data-cloud] {
175168
&::before {
@@ -182,9 +175,6 @@ h1 {
182175
color: var(--accent-1);
183176
}
184177
}
185-
i {
186-
line-height: calc(14px * 1.2);
187-
}
188178
img {
189179
width: 16px;
190180
}

0 commit comments

Comments
 (0)