Skip to content

Commit 7fa17b3

Browse files
committed
💄 调整布局,统一比例 2/1
1 parent e861633 commit 7fa17b3

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎src/components/userCombat/tuc-buff-box.vue‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ function getEffectDesc(desc: string): string {
6060
display: flex;
6161
width: fit-content;
6262
box-sizing: border-box;
63+
flex: 2;
6364
flex-direction: column;
64-
flex-shrink: 0;
65-
align-items: center;
65+
align-items: flex-start;
6666
justify-content: flex-start;
6767
padding: 8px;
6868
border: 1px solid var(--common-shadow-1);
@@ -156,6 +156,6 @@ function getEffectDesc(desc: string): string {
156156
position: relative;
157157
display: block;
158158
font-size: 10px;
159-
white-space: pre;
159+
white-space: pre-wrap;
160160
}
161161
</style>

‎src/components/userCombat/tuc-card-box.vue‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const props = defineProps<TucCardBoxProps>();
3131
display: flex;
3232
width: 100%;
3333
box-sizing: border-box;
34+
flex: 1;
3435
flex-direction: column;
3536
align-items: flex-start;
3637
justify-content: flex-start;
@@ -95,5 +96,6 @@ const props = defineProps<TucCardBoxProps>();
9596
position: relative;
9697
flex-shrink: 0;
9798
font-size: 12px;
99+
word-break: break-all;
98100
}
99101
</style>

0 commit comments

Comments
 (0)