Skip to content

Commit

Permalink
fix(urlEncode): 修复样式异常
Browse files Browse the repository at this point in the history
  • Loading branch information
ZvonimirSun committed Oct 19, 2023
1 parent 9c135c1 commit 7097730
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions src/views/crypto/urlEncode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@
<a-typography-title :level="5">
历史
</a-typography-title>
<div class="history-list">
<div
class="history-list"
w-full
>
<el-button
v-for="(history, index) in urlEncodeStore.history"
:key="index"
Expand All @@ -57,7 +60,7 @@
<span class="origin">
{{ history[0] }}
</span>
&nbsp;-->&nbsp;
<span class="middle">&nbsp;-->&nbsp;</span>
<span class="target">
{{ history[1] }}
</span>
Expand Down Expand Up @@ -131,5 +134,35 @@ function revertHistory (history: Array<string>) {
display: flex;
flex-direction: row;
flex-wrap: wrap;
:deep(.el-button) {
max-width: 100%;
& > span {
width: 100%;
}
}
.middle {
white-space: nowrap;
height: 2.4rem;
line-height: 2.4rem;
}
.origin, .target {
height: 2.4rem;
line-height: 2.4rem;
max-width: calc(100% - 3rem);
overflow: hidden;
text-overflow: ellipsis;
}
}
:deep(.el-space__item) {
max-width: 100%;
}
h5.ant-typography {
margin-bottom: 0;
}
</style>

0 comments on commit 7097730

Please sign in to comment.