hbl917070 / Tiefsee4

An open-source image viewer for Windows with powerful features and ease of use
https://hbl917070.github.io/aeropic/
MIT License
268 stars 11 forks source link

允許展開顯示完整提示詞 而不需要複製 #16

Closed bluelovers closed 8 months ago

bluelovers commented 10 months ago

image

允許展開完整顯示 而不需要複製貼上在其他地方才能看到完整內容

20230819-081212-ropf5sdo2y

hbl917070 commented 10 months ago

可以把最大行數設定成一個比較大的數字,這樣就可以完整顯示了

如果是希望文字超過一定行數時,在結尾顯示「展開」的按鈕,老實說這是一項困難的設計

bluelovers commented 10 months ago

在 標題處 直接加入 展開/收回 按鈕 但 不偵測行數 而是 單獨更改此區塊的最大顯示行數呢? 這樣會不會比較好實現?

然後在佈局設定內追加一個 展開時的最大行數

hbl917070 commented 10 months ago

有考慮過 但在橫向排列時(標題與內容在同一行),按鈕該擺在哪呢

bluelovers commented 10 months ago

image

開頭 或者 右側結尾 ? 以圖示作為按鈕外型

hbl917070 commented 10 months ago

標題前面跟後面並不是真的有空間,左邊是圖片區域,右邊則是我截圖裡面的標題剛好比較短才有空間 我再研究看看能不能自動判斷是否需要出現按鈕 初步構想是,滑鼠移入區塊時進行判斷,這樣就不需要判斷一堆條件

bluelovers commented 10 months ago

或者隱藏起來 整個標題 就是按紐 這樣就不用考慮是否有位置

hbl917070 commented 9 months ago

已經提交了「展開完整提示詞」的程式碼, 可以在最新的 Nightly版 測試這項功能 https://github.com/hbl917070/Tiefsee4/releases

當行數過多導致文字被摺叠時,右上角會多出一個「展開」的按鈕 image