Commit ba070c5e417d1a0888b351f722588395e94eba27

Authored by Wells Su
Committed by GitHub
1 parent 02d6a394

Style(Preview): Modify the button to center vertically (#36)

src/components/Preview/src/index.less
... ... @@ -72,12 +72,12 @@
72 72 background: rgba(109, 109, 109, 0.6);
73 73 border-radius: 22px;
74 74 justify-content: center;
75   - align-items: center;
76 75  
77 76 &-item {
  77 + display: flex;
  78 + height: 100%;
78 79 padding: 0 9px;
79 80 font-size: 24px;
80   - line-height: 44px;
81 81 cursor: pointer;
82 82 transition: all 0.2s;
83 83  
... ... @@ -94,11 +94,12 @@
94 94 &__arrow {
95 95 position: absolute;
96 96 top: 50%;
  97 + display: flex;
  98 + align-items: center;
  99 + justify-content: center;
97 100 width: 50px;
98 101 height: 50px;
99 102 font-size: 28px;
100   - line-height: 50px;
101   - text-align: center;
102 103 cursor: pointer;
103 104 background-color: rgba(0, 0, 0, 0.5);
104 105 border-radius: 50%;
... ...