web theme: hide the year-grid heatmap on phones, keep the contribution total + commit history
This commit is contained in:
parent
cd094f0173
commit
ad0d476a4d
6 changed files with 14 additions and 8 deletions
|
|
@ -72,7 +72,7 @@ more.
|
||||||
- **Fonts:** the web theme uses the system sans stack; Monocraft (self-hosted in `public/`) is
|
- **Fonts:** the web theme uses the system sans stack; Monocraft (self-hosted in `public/`) is
|
||||||
used by the desktop theme's SMP menu and the in-desktop terminal.
|
used by the desktop theme's SMP menu and the in-desktop terminal.
|
||||||
- **Images:** `next/image`
|
- **Images:** `next/image`
|
||||||
- **Version:** `2.2.1` (see `package.json`)
|
- **Version:** `2.2.2` (see `package.json`)
|
||||||
|
|
||||||
## 🚀 Running Locally
|
## 🚀 Running Locally
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ frosted-glass **web** site, and an alternate KDE/Plasma **desktop simulation**
|
||||||
utilities in the components (Tailwind is present via PostCSS but the look is
|
utilities in the components (Tailwind is present via PostCSS but the look is
|
||||||
hand-written CSS).
|
hand-written CSS).
|
||||||
- Path alias: `@/*` → `src/*`.
|
- Path alias: `@/*` → `src/*`.
|
||||||
- Version: `2.2.1` (see `package.json`).
|
- Version: `2.2.2` (see `package.json`).
|
||||||
|
|
||||||
### Scripts
|
### Scripts
|
||||||
```bash
|
```bash
|
||||||
|
|
@ -167,6 +167,10 @@ Themes: `web` = default frosted-glass website (sidebar + content, light/dark),
|
||||||
- The desktop switch (`.web-ctl-desktop`) is hidden on phones: under the
|
- The desktop switch (`.web-ctl-desktop`) is hidden on phones: under the
|
||||||
`max-width: 960px` breakpoint and under `(hover: none) and (pointer: coarse)`.
|
`max-width: 960px` breakpoint and under `(hover: none) and (pointer: coarse)`.
|
||||||
There is no device sniff anymore — phones just get the responsive web shell.
|
There is no device sniff anymore — phones just get the responsive web shell.
|
||||||
|
- Under `max-width: 640px` the year-grid heatmap (`.heatmap-container`) and its
|
||||||
|
legend/hover row (`.heatmap-status-row`) are `display: none` — the grid is
|
||||||
|
unreadable at phone widths. The contribution total and the commit history
|
||||||
|
still render, so the activity section keeps its substance on phones.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "dvorakmortonxd",
|
"name": "dvorakmortonxd",
|
||||||
"version": "2.2.1",
|
"version": "2.2.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "dvorakmortonxd",
|
"name": "dvorakmortonxd",
|
||||||
"version": "2.2.1",
|
"version": "2.2.2",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "^16.3.5",
|
"next": "^16.3.5",
|
||||||
"react": "^19.3.0",
|
"react": "^19.3.0",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "dvorakmortonxd",
|
"name": "dvorakmortonxd",
|
||||||
"version": "2.2.1",
|
"version": "2.2.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "node scripts/dev-server.mjs",
|
"dev": "node scripts/dev-server.mjs",
|
||||||
|
|
|
||||||
|
|
@ -365,7 +365,7 @@ export default function WebLayout() {
|
||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
<footer className="web-footer glass">
|
<footer className="web-footer glass">
|
||||||
<span className="web-footer-label">v2.2.1</span>
|
<span className="web-footer-label">v2.2.2</span>
|
||||||
© 2025-2026 Martin Dvořák. All rights reserved (not really I dont care, just
|
© 2025-2026 Martin Dvořák. All rights reserved (not really I dont care, just
|
||||||
follow the GPL3.0 License)
|
follow the GPL3.0 License)
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -1130,9 +1130,11 @@ html[data-theme="web"][data-scheme="dark"] .heatmap-legend-cell[data-level="4"]
|
||||||
.gym-weight {
|
.gym-weight {
|
||||||
font-size: 1.05rem;
|
font-size: 1.05rem;
|
||||||
}
|
}
|
||||||
|
/* Phones drop the year-grid heatmap (it's unreadable that small); the total
|
||||||
|
and the commit history stay. */
|
||||||
|
.heatmap-container,
|
||||||
.heatmap-status-row {
|
.heatmap-status-row {
|
||||||
flex-direction: column;
|
display: none;
|
||||||
align-items: flex-start;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue