@botonic/react
Version:
Build Chatbots using React
60 lines (56 loc) • 1.61 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ScrollableMessageList = exports.ContainerUnreadMessagesBanner = exports.ContainerScrollButton = exports.DefaultIntroImage = exports.ContainerMessage = void 0;
const tslib_1 = require("tslib");
const styled_components_1 = tslib_1.__importDefault(require("styled-components"));
exports.ContainerMessage = styled_components_1.default.div `
display: flex;
overflow-x: hidden;
flex-direction: column;
flex: none;
white-space: pre;
word-wrap: break-word;
`;
exports.DefaultIntroImage = styled_components_1.default.img `
max-height: 50%;
width: 100%;
`;
exports.ContainerScrollButton = styled_components_1.default.div `
position: sticky;
left: 85%;
bottom: 15px;
background-color: #6d6a78;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
width: 37px;
height: 37px;
border-radius: 50%;
`;
exports.ContainerUnreadMessagesBanner = styled_components_1.default.div `
display: flex;
justify-content: center;
align-items: center;
gap: 5px;
border-top: 1px solid #e8e8ea;
padding: 8px;
color: #6d6a78;
font-size: 14px;
font-weight: 400;
width: 100%;
img {
width: 10px;
}
`;
exports.ScrollableMessageList = styled_components_1.default.div `
display: flex;
flex: 1;
flex-direction: column;
overflow-y: auto;
overflow-x: hidden;
overscroll-behavior: contain; // https://css-tricks.com/almanac/properties/o/overscroll-behavior/
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
`;
//# sourceMappingURL=styles.js.map