tisfeng / Easydict

一个简洁优雅的词典翻译 macOS App。开箱即用,支持离线 OCR 识别,支持有道词典,🍎 苹果系统词典,🍎 苹果系统翻译,OpenAI,Gemini,DeepL,Google,Bing,腾讯,百度,阿里,小牛,彩云和火山翻译。A concise and elegant Dictionary and Translator macOS App for looking up words and translating text.
GNU General Public License v3.0
6.38k stars 324 forks source link

perf(UI): replace TextField with TextEditor to input modelds #570

Closed tisfeng closed 1 month ago

tisfeng commented 1 month ago

Close https://github.com/tisfeng/Easydict/issues/490

Before

Now

when there is no input, show a placeholder

image

When there are multiple lines

image
tisfeng commented 1 month ago

In order to keep the text alignment of TextEditor consistent with other cells, I changed its multilineTextAlignment to trailing.

image
AkaShark commented 1 month ago

LGTM