Просмотр исходного кода

fix(2fa): Wonky failed device icon (#41874)

**Before**
![Screen Shot 2022-11-29 at 3 36 33
PM](https://user-images.githubusercontent.com/1748388/204672353-a452e10a-bd46-446f-bb19-628febe04420.png)

**After**
![Screen Shot 2022-11-29 at 3 36 16
PM](https://user-images.githubusercontent.com/1748388/204672370-04003430-5185-406e-ba74-3f55b24478e8.png)
Danny Lee 2 лет назад
Родитель
Сommit
2a732e042e
1 измененных файлов с 4 добавлено и 5 удалено
  1. 4 5
      static/less/auth.less

+ 4 - 5
static/less/auth.less

@@ -200,15 +200,14 @@ div.u2f-box {
 
   div.device-failed {
     display: none;
-    position: absolute;
-    top: 50%;
-    left: 50%;
-    transform: translate(-50%, -50%);
-    padding-right: 4px;
+    position: relative;
+    width: 100px;
+    height: 100px;
 
     text-align: center;
     font-size: 46px;
     font-weight: bold;
+    line-height: 100px;
     color: @red;
     &:after {
       content: ':-(';