From e46329659cdc321378ebb8041e9a73d2f9cae0f8 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Fri, 1 Nov 2024 18:22:13 -0700 Subject: [PATCH] embed mode: wrap on mobile! (#267) - add media breakpoint to wrap right toolbar in embed mode - bump version to 0.13.3 --- package.json | 2 +- src/ui/coll.ts | 91 ++++++++++++++++++++++++++++---------------------- 2 files changed, 53 insertions(+), 40 deletions(-) diff --git a/package.json b/package.json index e77055f1..565ca0f5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@webrecorder/archivewebpage", "productName": "ArchiveWeb.page", - "version": "0.13.2", + "version": "0.13.3", "main": "index.js", "description": "Create Web Archives directly in your browser", "repository": { diff --git a/src/ui/coll.ts b/src/ui/coll.ts index 4541aeb8..09399a67 100644 --- a/src/ui/coll.ts +++ b/src/ui/coll.ts @@ -75,6 +75,17 @@ class WrRecColl extends Item { display: inline-block; } + @media screen and (max-width: 768px) { + div.has-addons { + flex-wrap: wrap; + justify-content: flex-end; + } + + div.has-addons form { + display: contents; + } + } + ${Item.compStyles} `; } @@ -151,48 +162,50 @@ class WrRecColl extends Item { } return html` - - - +
+ + + + + + + + ${prettyBytes(this.totalSize)} - - - - ${prettyBytes(this.totalSize)} - - ${this.showFinish - ? html` ` - : html` - Download - `} + Finish + ` + : html` + Download + `} +
`; }