Skip to content

Commit

Permalink
Update rt-ai-html.css
Browse files Browse the repository at this point in the history
  • Loading branch information
ledangtrung committed Dec 13, 2024
1 parent 843b717 commit 6d4d5e8
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions css/rt-ai-html.css
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ dialog {
transform: translate(-50%, -50%);

/* Dimensions */
min-width: 300px;
max-width: min(600px, 90%);
min-width: 320px;
max-width: min(800px, 84%);
max-height: 90vh;
width: fit-content;

Expand All @@ -269,13 +269,23 @@ dialog {
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;

/* Animation */
transition: transform var(--transition-speed);

/* Ensure modal stays on top */
z-index: 1000;
}

@media screen and (max-width: 672px) {
.modal-content {
max-width: 96%;
}
}

@media screen and (max-width: 320px) {
.modal-content {
max-width: 100%;
min-width: 100%;
}
}

.modal-header {
padding: 16px;
background: #f8f9fa;
Expand Down

0 comments on commit 6d4d5e8

Please sign in to comment.