# Compact Message Input

**URL:** <https://community.elfsight.com/t/compact-message-input/177623>\
**Category:** AI Chatbot\
**Created:** [October 25, 2026, 1:08am UTC](https://community.elfsight.com/t/compact-message-input/177623 "2026-10-25T01:08:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sina](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/sina/32/59970_2.png) [@Sina](https://community.elfsight.com/u/Sina)\
**Post date:** [October 25, 2026, 1:08am UTC](https://community.elfsight.com/t/compact-message-input/177623/1 "2026-10-25T01:08:15Z")

</div>

Add this code to the Custom CSS field on the Settings tab of your [AI Chatbot](https://elfsight.com/ai-chatbot-widget/) widget’s settings:

before

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/f/d/fdb84417ecc6ef5ef7574ae3529966c4ba879280.png)

after

![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/2/e/2ec742553562c0334e6dd4d45160bc84dc61cc2e.png)

```auto

/* ==========================================================
   Compact Message Input
   ========================================================== */

/* Outer input container */
.es-interaction-field-container {
    position: relative !important;
    display: block !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #d8d0c9 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Vertically center text and cursor */
.es-interaction-field-text-control {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    transform: translateY(-50%) !important;

    box-sizing: border-box !important;
    width: 100% !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;

    margin: 0 !important;
    padding: 0 90px 0 14px !important;

    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    background: transparent !important;

    font-size: 14px !important;
    line-height: 20px !important;
    overflow-y: auto !important;
    resize: none !important;
}

/* Input placeholder */
.es-interaction-field-text-control::placeholder {
    color: #a59a92 !important;
    opacity: 1 !important;
}

/* Attachment and send buttons */
[class*="interaction-field__Actions-sc"] {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    bottom: auto !important;
    left: auto !important;
    transform: translateY(-50%) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    padding: 0 !important;
    z-index: 2 !important;
}

/* Input focus state */
.es-interaction-field-container:focus-within {
    border-color: #c76b32 !important;
    box-shadow: none !important;
}

```

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [October 26, 2026, 6:47am UTC](https://community.elfsight.com/t/compact-message-input/177623/2 "2026-10-26T06:47:54Z")

</div>

Looks awesome! Many thanks for sharing your solution, Sina 😉
