Skip to content

Commit a4db321

Browse files
authored
Add files via upload
1 parent b54ae22 commit a4db321

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

test.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,16 +179,23 @@
179179
height: 40px;
180180
}
181181

182-
/* 候選字區塊樣式 - 允許換行以避免溢出 */
182+
/* 候選字區塊樣式 - 確保單行顯示並可水平捲動 */
183183
.candidate-area {
184-
min-height: 60px; /* 調整為一致的高度 */
184+
min-height: 60px;
185185
display: flex;
186-
flex-wrap: wrap; /* 允許換行以避免溢出 */
186+
flex-wrap: nowrap; /* 確保內容不換行 */
187187
align-items: center;
188188
padding: 8px;
189189
gap: 8px;
190-
white-space: normal;
190+
white-space: nowrap;
191+
overflow-x: auto; /* 在內容溢出時啟用水平捲動 */
192+
-ms-overflow-style: none; /* IE and Edge */
193+
scrollbar-width: none; /* Firefox */
191194
}
195+
.candidate-area::-webkit-scrollbar {
196+
display: none; /* 隱藏 Chrome, Safari 的捲軸 */
197+
}
198+
192199
.candidate-area span {
193200
cursor: pointer;
194201
padding: 5px 8px;

0 commit comments

Comments
 (0)