UNPKG

@memori.ai/memori-react

Version:

[![npm version](https://img.shields.io/github/package-json/v/memori-ai/memori-react)](https://www.npmjs.com/package/@memori.ai/memori-react) ![Tests](https://github.com/memori-ai/memori-react/workflows/CI/badge.svg?branch=main) ![TypeScript Support](https

184 lines (161 loc) 2.93 kB
/* Updated FilePreview Styles */ .memori--preview-container { min-width: 100%; padding: 12px; border-radius: 8px; margin-bottom: 12px; animation: slide-in 0.3s ease; background: white; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; } .memori--preview-container.slide-down { animation: slide-down 0.3s ease; } .memori--absolute-preview { position: absolute; bottom: 100%; } .memori--message-preview { max-width: 100%; margin: 12px 0; } .memori--preview-list { display: flex; flex-direction: row; gap: 8px; overflow-x: auto; } .memori--preview-item { position: relative; display: flex; max-width: fit-content; align-items: center; padding: 8px; border-radius: 8px; animation: slide-in 0.3s ease; background-color: #f8f9fa; cursor: pointer; gap: 8px; transition: all 0.2s ease; } .memori--preview-item:hover { background-color: #f1f3f5; transform: translateX(4px); } .memori--preview-icon { width: 20px; height: 20px; flex-shrink: 0; color: #fff; fill: var(--memori-primary); } .memori--preview-file-info { display: flex; overflow: hidden; flex-direction: column; } .memori--preview-filename { overflow: hidden; max-width: 200px; color: #495057; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; } .memori--preview-filetype { margin-top: 2px; color: #868e96; font-size: 12px; } .memori--modal-title-preview { margin-top: 12px; margin-bottom: 12px; font-size: 20px; font-weight: 600; } .memori--remove-button { position: absolute; top: -4px; right: -4px; padding: 4px; border: none; border-radius: 50%; background-color: #e03131; color: white; cursor: pointer; opacity: 0; transform: scale(0.75); transition: all 0.2s ease; } .memori--remove-button.visible { opacity: 1; transform: scale(1); } .memori--remove-button:hover { background-color: #c92a2a; transform: scale(1.1); } .memori--remove-icon { width: 12px; height: 12px; } .memori--modal-preview-file { width: 100%; max-width: 800px; height: 100%; padding: 12px; } .memori--preview-content { padding: 16px; border-radius: 8px; background-color: #f8f9fa; font-family: monospace; font-size: 14px; line-height: 1.5; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } } @keyframes slide-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes slide-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } @keyframes slide-down { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(10px); } }