diff --git a/src/components/userGacha/gbr-data-line.vue b/src/components/userGacha/gbr-data-line.vue index 4d5b5013..d93b49e8 100644 --- a/src/components/userGacha/gbr-data-line.vue +++ b/src/components/userGacha/gbr-data-line.vue @@ -3,7 +3,8 @@
- + bg +
{{ props.data.name }}
@@ -81,14 +82,30 @@ const progressWidth = computed(() => { } .gbr-dl-icon { + position: relative; display: flex; + overflow: hidden; width: 32px; height: 32px; + box-sizing: border-box; flex-shrink: 0; align-items: center; justify-content: center; + padding: 2px; + border-radius: 4px; - img { + .bg { + position: absolute; + z-index: 0; + top: 0; + left: 0; + width: 100%; + height: 100%; + } + + .icon { + position: relative; + z-index: 1; width: 100%; height: 100%; }