Skip to content

Commit fc36499

Browse files
0DarkPhoenixsharevb
authored andcommitted
- Fixed an issue where the center of the wheel was misaligned compared to the fortune wheel (#177)
- Fixed an issue where the move up and move down buttons all had the same icon as the remove button in the wheel options section
1 parent 39c47a0 commit fc36499

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/tools/fortune-wheel/fortune-wheel.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -332,22 +332,22 @@ function getTextPosition(index: number) {
332332
:title="t('tools.fortune-wheel.texts.title-move-up')"
333333
@click="moveOption(index, index - 1)"
334334
>
335-
{{ t('tools.fortune-wheel.texts.tag-') }}
335+
<icon-mdi-arrow-up />
336336
</c-button>
337337
<c-button
338338
size="small"
339339
:disabled="index === wheelOptions.length - 1"
340340
:title="t('tools.fortune-wheel.texts.title-move-down')"
341341
@click="moveOption(index, index + 1)"
342342
>
343-
{{ t('tools.fortune-wheel.texts.tag-') }}
343+
<icon-mdi-arrow-down />
344344
</c-button>
345345
<c-button
346346
size="small"
347347
:title="t('tools.fortune-wheel.texts.title-remove')"
348348
@click="removeOption(option.id)"
349349
>
350-
{{ t('tools.fortune-wheel.texts.tag-') }}
350+
<icon-mdi-close />
351351
</c-button>
352352
</div>
353353
</div>
@@ -569,14 +569,14 @@ function getTextPosition(index: number) {
569569
570570
.wheel-center {
571571
position: absolute;
572-
top: 49.5%;
572+
top: 50%;
573573
left: 50%;
574574
width: v-bind('`${WHEEL_CONFIG.centerSize}px`');
575575
height: v-bind('`${WHEEL_CONFIG.centerSize}px`');
576576
border-radius: 50%;
577577
background: #414141;
578578
border: 4px solid #333;
579-
transform: t(-50%, -50%);
579+
transform: translate(-50%, -50%);
580580
z-index: 10;
581581
display: flex;
582582
align-items: center;

0 commit comments

Comments
 (0)