Improve dashboard UI and some fixes
This commit is contained in:
@@ -156,8 +156,72 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
.file-icon {
|
||||
font-size: 1.2rem;
|
||||
.dashboard-file-icon {
|
||||
font-size: 1.25rem !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
min-width: 50px !important;
|
||||
width: 50px !important;
|
||||
height: 50px !important;
|
||||
flex-shrink: 0 !important;
|
||||
}
|
||||
|
||||
.dashboard-file-icon i {
|
||||
font-size: 1.25rem !important;
|
||||
line-height: 1 !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
vertical-align: middle !important;
|
||||
}
|
||||
|
||||
/* Force proper icon rendering to prevent compression */
|
||||
.revised-files-section .file-icon {
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
border-radius: 50% !important;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.revised-files-section .file-icon::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
border-radius: 50%;
|
||||
background: inherit;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
/* AI text icon styling */
|
||||
.revised-files-section .ai-icon {
|
||||
background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
|
||||
color: white !important;
|
||||
font-weight: bold !important;
|
||||
font-size: 1.2rem !important;
|
||||
letter-spacing: 1px !important;
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
|
||||
border: 2px solid rgba(255, 255, 255, 0.2) !important;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
|
||||
}
|
||||
|
||||
/* Ensure icon font doesn't get compressed */
|
||||
.revised-files-section .fa-brain {
|
||||
transform: none !important;
|
||||
font-weight: 900 !important;
|
||||
font-family: "Font Awesome 5 Free" !important;
|
||||
vertical-align: middle !important;
|
||||
display: inline-block !important;
|
||||
font-style: normal !important;
|
||||
font-variant: normal !important;
|
||||
text-rendering: auto !important;
|
||||
line-height: 1 !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.progress-bar-animated {
|
||||
@@ -190,50 +254,203 @@ body {
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
/* Responsive adjustments */
|
||||
/* Revised Files Section Styling */
|
||||
.revised-files-section .card {
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.revised-files-section .card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.15) !important;
|
||||
}
|
||||
|
||||
.revised-files-section .file-icon {
|
||||
min-width: 50px !important;
|
||||
width: 50px !important;
|
||||
height: 50px !important;
|
||||
flex-shrink: 0 !important;
|
||||
font-size: 1.25rem !important;
|
||||
line-height: 1 !important;
|
||||
}
|
||||
|
||||
.revised-files-section .file-icon i {
|
||||
font-size: 1.25rem !important;
|
||||
line-height: 1 !important;
|
||||
}
|
||||
|
||||
.revised-files-section .text-truncate {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.revised-files-section .min-w-0 {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.revised-files-section .card-body {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.revised-files-section .btn-group {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.revised-files-section .btn-group .btn {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.revised-files-section .btn-group .btn:last-child {
|
||||
flex: 0 0 auto;
|
||||
min-width: 40px;
|
||||
}
|
||||
|
||||
/* File name truncation for long names */
|
||||
.file-name-truncate {
|
||||
max-width: 200px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
display: inline-block;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
/* Badge styling improvements */
|
||||
.revised-files-section .badge {
|
||||
font-size: 0.7rem !important;
|
||||
padding: 0.25em 0.5em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Button spacing and sizing improvements */
|
||||
.revised-files-section .d-grid .btn {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
/* Ensure cards have consistent height */
|
||||
.revised-files-section .card {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.revised-files-section .card-body {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
/* Responsive adjustments for small screens */
|
||||
@media (max-width: 768px) {
|
||||
.hero-section {
|
||||
min-height: 50vh;
|
||||
text-align: center;
|
||||
.revised-files-section .file-name-truncate {
|
||||
max-width: 150px;
|
||||
}
|
||||
|
||||
.hero-section .display-4 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.message-content {
|
||||
max-width: 85% !important;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
width: 40px !important;
|
||||
height: 40px !important;
|
||||
min-width: 40px !important;
|
||||
}
|
||||
|
||||
.avatar i {
|
||||
.revised-files-section .file-icon {
|
||||
width: 45px !important;
|
||||
height: 45px !important;
|
||||
min-width: 45px !important;
|
||||
font-size: 1rem !important;
|
||||
}
|
||||
|
||||
.message-bubble {
|
||||
padding: 0.75rem !important;
|
||||
font-size: 0.9rem;
|
||||
.revised-files-section .ai-icon {
|
||||
font-size: 1rem !important;
|
||||
letter-spacing: 0.5px !important;
|
||||
}
|
||||
|
||||
.card-body {
|
||||
padding: 1.5rem;
|
||||
.revised-files-section .file-icon i {
|
||||
font-size: 1.1rem !important;
|
||||
}
|
||||
|
||||
#chat-container {
|
||||
height: 400px !important;
|
||||
padding: 1rem !important;
|
||||
.revised-files-section .btn-group .btn {
|
||||
font-size: 0.8rem;
|
||||
padding: 0.375rem 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile responsive file icons */
|
||||
@media (max-width: 768px) {
|
||||
.dashboard-file-icon {
|
||||
min-width: 45px !important;
|
||||
width: 45px !important;
|
||||
height: 45px !important;
|
||||
font-size: 1.1rem !important;
|
||||
}
|
||||
|
||||
.chat-message {
|
||||
margin-bottom: 1rem;
|
||||
.dashboard-file-icon i {
|
||||
font-size: 1.1rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Dashboard section spacing */
|
||||
.dashboard-section {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.dashboard-section h3 {
|
||||
font-weight: 600;
|
||||
color: var(--dark-color);
|
||||
}
|
||||
|
||||
/* Enhanced visual separation between sections */
|
||||
.ai-revised-section {
|
||||
background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.02) 100%);
|
||||
border-radius: 1rem;
|
||||
padding: 1.5rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
/* Badge positioning fixes for dashboard cards */
|
||||
.card .badge {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
|
||||
.card .text-end {
|
||||
text-align: right !important;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* Ensure card body contains all content properly */
|
||||
.card-body {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
padding: 1rem !important;
|
||||
}
|
||||
|
||||
/* Prevent badge overflow */
|
||||
.card .d-flex .text-end {
|
||||
flex-shrink: 0;
|
||||
min-width: fit-content;
|
||||
}
|
||||
|
||||
.card .d-flex .flex-grow-1 {
|
||||
overflow: hidden;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* Dashboard card container fixes */
|
||||
.dashboard-section .card {
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
border: 1px solid rgba(0, 0, 0, 0.125);
|
||||
border-radius: 0.375rem;
|
||||
}
|
||||
|
||||
.dashboard-section .card-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Loading spinner */
|
||||
.spinner-border {
|
||||
width: 3rem;
|
||||
|
||||
Reference in New Issue
Block a user