gpt4 book ai didi

html - 连续输入4次后按下后如何操作trix-editor停止调整大小

转载 作者:行者123 更新时间:2023-11-27 23:01:44 26 4
gpt4 key购买 nike

如何在 trix-editor 中调整 css,以便我可以更改其样式,在按几次 enter 后它会停止调整大小。

<div class="bg-white flex flex-wrap self-end items-center w-full text-xl">
<!-- <input type="text" class="flex-auto appearance-none text-base p-2" placeholder="Write a message..."> -->
<VueTrix class="flex-auto appearance-none text-base p-2" @keypress.enter="sendMessage" v-model="editorContent" plloreaceholder="Press shift + enter to send your message" localStoragem ipsum/>
</div>

这是视频附件的网址: https://cdn.discordapp.com/attachments/496820557627654174/646552238126399489/Blacktrail_-_Chat_Feature_-_Google_Chrome_2019-11-20_11-23-51.mp4

最佳答案

我的建议是:在 tailwind.config.js 中配置自定义 maxHeight

// tailwind.config.js
module.exports = {
theme: {
maxHeight: {
'four-lines': '96px'
}
}
}

类(class)将是:.max-h-four-lines

关于html - 连续输入4次后按下后如何操作trix-editor停止调整大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58946298/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com