Change alignment of some popup elements

This commit is contained in:
Ajay
2022-06-03 01:38:32 -04:00
parent 20b95887af
commit 9664bbea73
3 changed files with 43 additions and 30 deletions

View File

@@ -268,6 +268,10 @@
white-space: normal;
}
.sbVoteButtonsContainer {
text-align: right;
}
/*
* Buttons that appear under a segment on click
*/
@@ -465,7 +469,14 @@
.sbYourWorkCols > div {
display: flex;
border-top: 2px solid var(--sb-grey-bg-color);
border-bottom: 2px solid var(--sb-grey-bg-color);
}
.sbStatsSentence {
padding-top: 5px;
padding-bottom: 5px;
}
/*
* Increase font size of username input and display
*/

View File

@@ -84,8 +84,10 @@
</div>
<!-- Your Work box -->
<details class="sbYourWorkCols">
<summary class="sbHeader" style="padding: 8px 16px; cursor: pointer;">&nbsp;&nbsp;__MSG_yourWork__</summary>
<div class="sbYourWorkCols">
<p class="sbHeader" style="padding: 8px 16px; cursor: pointer;">
__MSG_yourWork__
</p>
<div>
<!-- Username -->
<div id="usernameElement">
@@ -115,9 +117,8 @@
<span id="sponsorTimesContributionsDisplay">0</span>
</div>
</div>
</details>
<p id="sponsorTimesViewsContainer" style="display: none" class="u-mZ">
<p id="sponsorTimesViewsContainer" style="display: none" class="u-mZ sbStatsSentence">
__MSG_savedPeopleFrom__
<b>
<span id="sponsorTimesViewsDisplay">0</span>
@@ -130,9 +131,9 @@
<span id="sponsorTimesOthersTimeSavedEndWord">__MSG_minsLower__</span>
</b>
<span>__MSG_youHaveSavedTimeEnd__</span>
).
)
</p>
<p id="sponsorTimesSkipsDoneContainer" style="display: none" class="u-mZ">
<p id="sponsorTimesSkipsDoneContainer" style="display: none" class="u-mZ sbStatsSentence">
__MSG_youHaveSkipped__
<b>
<span id="sponsorTimesSkipsDoneDisplay">0</span>
@@ -143,8 +144,9 @@
<span id="sponsorTimeSavedDisplay">0</span>
<span id="sponsorTimeSavedEndWord">__MSG_minsLower__</span>
</b>
).
)
</p>
</div>
<footer id="sbFooter">
<div id="sponsorTimesDonateContainer" style="display: none; align-items: center; justify-content: center;">

View File

@@ -474,7 +474,7 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
//thumbs up and down buttons
const voteButtonsContainer = document.createElement("div");
voteButtonsContainer.id = "sponsorTimesVoteButtonsContainer" + UUID;
voteButtonsContainer.setAttribute("align", "center");
voteButtonsContainer.classList.add("sbVoteButtonsContainer");
const upvoteButton = document.createElement("img");
upvoteButton.id = "sponsorTimesUpvoteButtonsContainer" + UUID;