openvibers/openvibe.mediahub Commits

Phones: list grids size their columns with minmax(0, 1fr) (or a min(…, 100%) minimum), so one long line can never widen a page past the screen (#129)

OP OpenVibers committed 19 days ago · 920af71d4b · 2 files, +4 −4

Changes

ddiff --git a/public/css/pics.css b/public/css/pics.css
iindex 586f0fa..d199256 100644
---- a/public/css/pics.css
++++ b/public/css/pics.css
@@@ -49,7 +49,7 @@
.ovp-drop--signin .ovp-drop-inner { padding: 30px 20px; }
/* Upload results (the script) */
--.ovp-results { list-style: none; margin: 0; padding: 0 16px; display: grid; gap: 10px; }
++.ovp-results { list-style: none; margin: 0; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ovp-results:not(:empty) { padding-bottom: 16px; }
.ovp-result { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--ovp-line); background: var(--bg-secondary, #0f1729); text-align: left; }
.ovp-result img, .ovp-result .ovp-result-ph { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--bg-tertiary, #16223a); }
ddiff --git a/public/css/video.css b/public/css/video.css
iindex 05fef23..5830230 100644
---- a/public/css/video.css
++++ b/public/css/video.css
@@@ -121,7 +121,7 @@ a.ovv-channel-name:hover { text-decoration: underline; }
.ovv-panel > p.ovv-fine { margin-top: .6rem; }
/* Chapters */
--.ovv-chapters ol { list-style: none; margin: 0 -8px; padding: 0; display: grid; gap: 2px; max-height: 520px; overflow-y: auto; }
++.ovv-chapters ol { list-style: none; margin: 0 -8px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; max-height: 520px; overflow-y: auto; }
.ovv-chapters a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 8px; border-radius: 8px; color: inherit; text-decoration: none; font-size: .9rem; line-height: 1.4; }
.ovv-chapters a:hover, .ovv-chapters a:focus-visible { background: var(--bg-hover, #1c2a44); }
.ovv-chapters a.is-current { background: color-mix(in srgb, var(--ovv-accent) 14%, transparent); }
@@@ -221,7 +221,7 @@ a.ovv-channel-name:hover { text-decoration: underline; }
.ovv-pl-edit[open] > summary { margin-bottom: 10px; border-color: var(--ovv-accent); }
.ovv-pl-edit .ovv-playlist-actions { padding-top: 10px; border-top: 1px solid var(--ovv-line); }
--.ovv-playlist-list, .ovv-item-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
++.ovv-playlist-list, .ovv-item-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ovv-playlist-row, .ovv-item-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--ovv-line); border-radius: 12px; background: var(--ovv-card); }
.ovv-playlist-main { display: grid; gap: 2px; min-width: 0; flex: 1 1 220px; }
.ovv-playlist-title, .ovv-item-title { font-weight: 700; overflow-wrap: anywhere; color: inherit; text-decoration: none; }
@@@ -280,7 +280,7 @@ a.ovv-channel-name:hover { text-decoration: underline; }
.ovv-cut-modes legend { padding: 0; margin-bottom: 4px; font-size: .85rem; font-weight: 700; color: var(--ovv-dim); }
.ovv-cut-modes .ovv-radio { flex-wrap: wrap; column-gap: 8px; row-gap: 0; }
.ovv-cut-modes .ovv-fine { flex-basis: 100%; margin: 0 0 0 24px; }
--.ovv-cuts { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--ovv-line); display: grid; gap: 6px; font-size: .86rem; color: var(--ovv-dim); }
++.ovv-cuts { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--ovv-line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; font-size: .86rem; color: var(--ovv-dim); }
.ovv-cuts b { color: var(--text-primary, #e6edf7); }
.ovv-edited-from { margin: 0 0 10px; }
.ovv-table { width: 100%; border-collapse: collapse; }