Skip to content

Commit da544a0

Browse files
Fix rules incorrectly nested in the media container
The media query and container queries were incorrectly nested inside the .transition-colors utility class in webview-ui/src/index.css, which would limit their scope unintentionally. Fixed it by moving them to the root level of the CSS file, right after the .transition-colors rule. This should ensure the responsive hiding of the API request text applies globally as intended.
1 parent a2abad1 commit da544a0

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

webview-ui/src/index.css

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -486,24 +486,24 @@ input[cmdk-input]:focus {
486486
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
487487
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
488488
transition-duration: 150ms;
489+
}
489490

490-
/* Hide API Request text when container is too narrow */
491-
@media (max-width: 400px) {
492-
.api-request-text {
493-
display: none !important;
494-
}
491+
/* Hide API Request text when container is too narrow */
492+
@media (max-width: 400px) {
493+
.api-request-text {
494+
display: none !important;
495495
}
496+
}
496497

497-
/* Alternative: Use container query for more precise control */
498-
@supports (container-type: inline-size) {
499-
.api-request-container {
500-
container-type: inline-size;
501-
}
498+
/* Alternative: Use container query for more precise control */
499+
@supports (container-type: inline-size) {
500+
.api-request-container {
501+
container-type: inline-size;
502+
}
502503

503-
@container (max-width: 350px) {
504-
.api-request-text {
505-
display: none !important;
506-
}
504+
@container (max-width: 350px) {
505+
.api-request-text {
506+
display: none !important;
507507
}
508508
}
509509
}

0 commit comments

Comments
 (0)