Skip to content

Commit b8da21d

Browse files
committed
Improve tag suggestion wrapping
1 parent a6e22ad commit b8da21d

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

‎src/main/resources/static/assets/css/common.css‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,13 +912,22 @@ a:hover {
912912
background: transparent;
913913
text-align: left;
914914
display: flex;
915-
justify-content: space-between;
915+
justify-content: flex-start;
916+
align-items: flex-start;
916917
gap: 0.6rem;
917918
padding: 0.45rem 0.6rem;
918919
border-radius: 10px;
919920
color: var(--text);
920921
}
921922

923+
.tag-suggestion__title {
924+
flex: 1 1 60%;
925+
min-width: 0;
926+
line-height: 1.35;
927+
word-break: keep-all;
928+
overflow-wrap: anywhere;
929+
}
930+
922931
.tag-suggestion:hover {
923932
background: var(--surface-soft);
924933
}
@@ -927,6 +936,10 @@ a:hover {
927936
color: var(--muted);
928937
font-size: 0.8rem;
929938
white-space: nowrap;
939+
flex: 0 1 auto;
940+
max-width: 45%;
941+
overflow: hidden;
942+
text-overflow: ellipsis;
930943
}
931944

932945
.page-nav {

‎src/main/resources/static/assets/js/tag-input.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
item.className = 'tag-suggestion';
103103

104104
const title = document.createElement('span');
105+
title.className = 'tag-suggestion__title';
105106
title.textContent = option.nameKo;
106107
item.appendChild(title);
107108

0 commit comments

Comments
 (0)