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" @change="handleChange"
> >
{{ data.LOCVOTCON }} {{ 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 }} {{ data.LOCVOTLIK }}
</a> </a>
</label> </label>
@ -54,5 +55,10 @@ const handleChange = (event) => {
</script> </script>
<style> <style>
a {
max-width: 500px; /* 원하는 너비로 조정 */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style> </style>

View File

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

View File

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