[mv3] Minor CSS adjustments

This commit is contained in:
Raymond Hill 2025-05-12 18:00:14 -04:00
parent 569dfea3cb
commit 9763a79c01
No known key found for this signature in database
GPG key ID: 25E1490B761470C2
2 changed files with 5 additions and 3 deletions

View file

@ -12,7 +12,7 @@
--popup-gap-extra-thin: calc(0.25 * var(--popup-gap));
--popup-main-min-width: calc(
var(--filtering-mode-slider-width) +
var(--filtering-mode-button-size) / 2
var(--filtering-mode-button-size)
);
--popup-firewall-min-width: 30em;
--popup-rule-cell-width: 5em;
@ -43,7 +43,7 @@ a {
align-self: inherit;
}
:root.mobile #main {
min-width: 100%;
/*min-width: 100%;*/
}
hr {
border: 0;

View file

@ -34,5 +34,7 @@ import { dom } from './dom.js';
{
const mql = self.matchMedia('(hover: hover)');
dom.cl.toggle(dom.html, 'mobile', mql.matches !== true);
const isTouchScreen = mql.matches !== true;
dom.cl.toggle(dom.html, 'mobile', isTouchScreen);
dom.cl.toggle(dom.html, 'desktop', isTouchScreen === false);
}