Merge branch 'khj'

This commit is contained in:
khj0414 2025-03-13 12:09:09 +09:00
commit e9f7b5d358
3 changed files with 21 additions and 8 deletions

View File

@ -10,7 +10,8 @@
@change="handleChange"
>
{{ data.LOCVOTCON }}
<a v-if="data.LOCVOTLIK" :href="data.LOCVOTLIK.startsWith('http') ? data.LOCVOTLIK : 'http://' + data.LOCVOTLIK" target="_blank">
<div></div>
<a v-if="data.LOCVOTLIK" :href="data.LOCVOTLIK.startsWith('http') ? data.LOCVOTLIK : 'http://' + data.LOCVOTLIK" class="d-inline-block text-truncate" target="_blank" rel="noopener noreferrer">
{{ data.LOCVOTLIK }}
</a>
</label>
@ -54,5 +55,10 @@ const handleChange = (event) => {
</script>
<style>
a {
max-width: 500px; /* 원하는 너비로 조정 */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>

View File

@ -6,21 +6,22 @@
<!-- 링크 입력창 (옆으로 나오게) -->
<div
v-if="isPopoverVisible"
class="popover-container d-flex align-items-center"
class="d-flex"
>
<input
v-model="link"
placeholder="URL을 입력해주세요"
class="form-control me-2"
style="min-width: 200px;"
class="form-control"
style="min-width: 500px;"
/>
<save-btn class="btn-sm" @click="saveLink"/>
</div>
<!-- 등록된 링크, 입력창이 보이지 않고 등록된 링크만 보일 -->
<span v-if="isLinkSaved && !isPopoverVisible" class="ms-2">
<a :href="formattedLink" target="_blank" rel="noopener noreferrer">{{ link }}</a>
<a :href="formattedLink" class="d-inline-block text-truncate" target="_blank" rel="noopener noreferrer">
{{ link }}
</a>
</span>
</div>
</template>
@ -60,4 +61,10 @@ display: flex;
align-items: center;
gap: 8px; /* 아이콘과 입력창 간격 조정 */
}
a {
max-width: 500px; /* 원하는 너비로 조정 */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>

View File

@ -15,7 +15,7 @@
</div>
<!-- 투표리스트 -->
<div v-if="!voteListCardData" class="mt66"> 등록된 투표가 없습니다.</div>
<div v-if="voteListCardData.length == 0 " class="mt66">등록된 투표가 없습니다.</div>
<vote-list
:data="voteListCardData"
@addContents="addContents"