fix(ui): improve mobile responsiveness and layout scaling

This commit is contained in:
Abishek Raj R R 2026-02-17 19:23:53 +05:30
parent 6244ea19fb
commit 3571fbdb1f

View file

@ -10,12 +10,33 @@
@reference 'tailwindcss'; @reference 'tailwindcss';
@layer utilities { @layer utilities {
/* for hig DPI windows display */
*{
box-sizing: border-box;
}
.text-balance { .text-balance {
text-wrap: balance; text-wrap: balance;
} }
.custom-scrollbar { .custom-scrollbar {
scrollbar-width: thin; scrollbar-width: thin;
scrollbar-color: rgba(156, 163, 175, 0.3) transparent; scrollbar-color: rgba(156, 163, 175, 0.3) transparent;
/* for different browsers */
&::-webkit-scrollbar{
width: 4px;
height: 4px;
}
&::-webkit-scrollbar-track{
background: transparent;
}
&::-webkit-scrollbar-thumb{
background-color: rgba(156, 163, 175, 0.3);
border-radius: 4px;
}
} }
.custom-scrollbar::-webkit-scrollbar { .custom-scrollbar::-webkit-scrollbar {
@ -121,8 +142,24 @@ html, body {
html { html {
font-family: 'Inter', system-ui, -apple-system, sans-serif; font-family: 'Inter', system-ui, -apple-system, sans-serif;
/*For Windows font smoothing and windows compatible*/
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
text-size-adjust: 100%;
} }
/* Windows font rendering fix */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
body {
-webkit-font-smoothing: antialiased;
-webkit-font-smoothing: antialiased
}
}
body { body {
background: var(--background); background: var(--background);
color: var(--foreground); color: var(--foreground);