Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit bd55af8

Browse files
authored
Merge pull request #1560 from ecency/feature/ecency-perks
Fixed vote slider on mobile and its icons
2 parents 01aea16 + a15097b commit bd55af8

File tree

5 files changed

+28
-17
lines changed

5 files changed

+28
-17
lines changed

src/common/components/comment/__snapshots__/index.spec.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ exports[`(1) Default render 1`] = `
219219
</div>
220220
<div
221221
className="editor-tool"
222-
id="editor-tool-emoji-picker-24b7277e-9cbe-4335-bbc5-e12f5db84dcd"
222+
id="editor-tool-emoji-picker-94ffd8dd-0f14-4aa3-8ab0-a8acb7644a8b"
223223
role="none"
224224
title="Emoji"
225225
>
@@ -584,7 +584,7 @@ exports[`(2) Cancellable, in progress 1`] = `
584584
</div>
585585
<div
586586
className="editor-tool"
587-
id="editor-tool-emoji-picker-7c4ec71d-f920-4ed5-ab33-a7dd36cc19b8"
587+
id="editor-tool-emoji-picker-58b875a4-80f0-4959-8fe3-49734b8519bc"
588588
role="none"
589589
title="Emoji"
590590
>

src/common/components/decks/deck-toolbar/deck-toolbar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export const DeckToolbar = ({ isExpanded, setIsExpanded, history }: Props) => {
8989
setIsExpanded={setIsExpanded}
9090
/>
9191
<DeckToolbarBaseActions
92+
history={history}
9293
isExpanded={isExpanded}
9394
history={history}
9495
setIsExpanded={setIsExpanded}

src/common/components/entry-vote-btn/_index.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import "src/style/vars_mixins";
2+
@import "../decks/columns/helpers/helpers";
23

34
.entry-vote-btn {
45
margin-right: 10px;
@@ -256,6 +257,10 @@
256257
display: inline-block;
257258
}
258259

260+
.tooltip-vote {
261+
@include compact_vote_slider();
262+
}
263+
259264
.tooltip-vote .tooltiptext {
260265
width: 32vw;
261266
@apply text-dark-200;

src/common/img/_index.scss

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
.vote-svg {
2-
width: 8px !important;
3-
max-height: 6px !important;
2+
min-width: 8px !important;
3+
min-height: 6px !important;
4+
max-width: 8px !important;
5+
max-height: 6px !important;
46
}
5-
7+
68
.slider-svg-up {
7-
width: 12px !important;
8-
max-height: 7px !important;
9-
margin-bottom: 1px;
9+
width: 12px !important;
10+
max-height: 7px !important;
11+
margin-bottom: 1px;
1012
}
11-
13+
1214
.slider-svg-down {
13-
width: 12px !important;
14-
max-height: 7px !important;
15-
margin-top: 1px;
15+
width: 12px !important;
16+
max-height: 7px !important;
17+
margin-top: 1px;
1618
}

src/style/_mixins.scss

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
@if $theme == "day" {
33
@content;
44
} @else if $theme == "night" {
5-
.dark & {
6-
@content;
7-
}
5+
.dark & {
6+
@content;
7+
}
88
}
99
}
1010

@@ -280,6 +280,7 @@
280280
white-space: nowrap;
281281
@include multiLineEllipsis($lineHeight: 1.5em, $lineCount: 2);
282282
}
283+
283284
.item-nsfw {
284285
margin-bottom: 9px;
285286

@@ -356,8 +357,10 @@
356357
}
357358

358359
svg {
359-
width: 14px;
360-
height: 14px;
360+
min-width: 14px;
361+
min-height: 14px;
362+
max-width: 14px;
363+
max-height: 14px;
361364
}
362365

363366
//animation for upvote in progress

0 commit comments

Comments
 (0)