Skip to content

Commit 753bf5f

Browse files
fix: hit test title style optimize(#3533)
1 parent 8e3e46a commit 753bf5f

File tree

1 file changed

+10
-23
lines changed

1 file changed

+10
-23
lines changed

ui/src/views/hit-test/index.vue

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@
88
</h4>
99
</template>
1010
<div class="hit-test__main p-16" v-loading="loading">
11-
<div class="question-title" :style="{ visibility: questionTitle ? 'visible' : 'hidden' }">
12-
<div class="avatar">
13-
<AppAvatar>
14-
<img src="@/assets/user-icon.svg" style="width: 54%" alt="" />
15-
</AppAvatar>
16-
</div>
17-
<div class="content">
18-
<h4 class="text break-all">{{ questionTitle }}</h4>
19-
</div>
11+
<div
12+
class="question-title flex align-center"
13+
:style="{ visibility: questionTitle ? 'visible' : 'hidden' }"
14+
>
15+
<AppAvatar>
16+
<img src="@/assets/user-icon.svg" style="width: 54%" alt="" />
17+
</AppAvatar>
18+
<h4 class="break-all ellipsis-1 ml-8" style="width: 66%" :title="questionTitle">
19+
{{ questionTitle }}
20+
</h4>
2021
</div>
2122
<el-scrollbar>
2223
<div class="hit-test-height">
@@ -349,20 +350,6 @@ onMounted(() => {})
349350
</script>
350351
<style lang="scss" scoped>
351352
.hit-test {
352-
.question-title {
353-
.avatar {
354-
float: left;
355-
}
356-
.content {
357-
padding-left: 40px;
358-
.text {
359-
padding: 6px 0;
360-
height: 34px;
361-
box-sizing: border-box;
362-
}
363-
}
364-
}
365-
366353
&__operate {
367354
.operate-textarea {
368355
box-shadow: 0px 6px 24px 0px rgba(31, 35, 41, 0.08);

0 commit comments

Comments
 (0)