mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-22 14:01:42 +03:00
- 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
This commit is contained in:
1 parent
39c47a0a5a
commit
fc36499963
1 file changed
+5
-5
@@ -332,7 +332,7 @@ function getTextPosition(index: number) {
|
|||||||
:title="t('tools.fortune-wheel.texts.title-move-up')"
|
:title="t('tools.fortune-wheel.texts.title-move-up')"
|
||||||
@click="moveOption(index, index - 1)"
|
@click="moveOption(index, index - 1)"
|
||||||
>
|
>
|
||||||
{{ t('tools.fortune-wheel.texts.tag-') }}
|
<icon-mdi-arrow-up />
|
||||||
</c-button>
|
</c-button>
|
||||||
<c-button
|
<c-button
|
||||||
size="small"
|
size="small"
|
||||||
@@ -340,14 +340,14 @@ function getTextPosition(index: number) {
|
|||||||
:title="t('tools.fortune-wheel.texts.title-move-down')"
|
:title="t('tools.fortune-wheel.texts.title-move-down')"
|
||||||
@click="moveOption(index, index + 1)"
|
@click="moveOption(index, index + 1)"
|
||||||
>
|
>
|
||||||
{{ t('tools.fortune-wheel.texts.tag-') }}
|
<icon-mdi-arrow-down />
|
||||||
</c-button>
|
</c-button>
|
||||||
<c-button
|
<c-button
|
||||||
size="small"
|
size="small"
|
||||||
:title="t('tools.fortune-wheel.texts.title-remove')"
|
:title="t('tools.fortune-wheel.texts.title-remove')"
|
||||||
@click="removeOption(option.id)"
|
@click="removeOption(option.id)"
|
||||||
>
|
>
|
||||||
{{ t('tools.fortune-wheel.texts.tag-') }}
|
<icon-mdi-close />
|
||||||
</c-button>
|
</c-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -569,14 +569,14 @@ function getTextPosition(index: number) {
|
|||||||
|
|
||||||
.wheel-center {
|
.wheel-center {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 49.5%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
width: v-bind('`${WHEEL_CONFIG.centerSize}px`');
|
width: v-bind('`${WHEEL_CONFIG.centerSize}px`');
|
||||||
height: v-bind('`${WHEEL_CONFIG.centerSize}px`');
|
height: v-bind('`${WHEEL_CONFIG.centerSize}px`');
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: #414141;
|
background: #414141;
|
||||||
border: 4px solid #333;
|
border: 4px solid #333;
|
||||||
transform: t(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
Reference in new issue
Block a user