Skip to content

Commit e463296

Browse files
authored
embed mode: wrap on mobile! (#267)
- add media breakpoint to wrap right toolbar in embed mode - bump version to 0.13.3
1 parent ad52d82 commit e463296

File tree

2 files changed

+53
-40
lines changed

2 files changed

+53
-40
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@webrecorder/archivewebpage",
33
"productName": "ArchiveWeb.page",
4-
"version": "0.13.2",
4+
"version": "0.13.3",
55
"main": "index.js",
66
"description": "Create Web Archives directly in your browser",
77
"repository": {

src/ui/coll.ts

Lines changed: 52 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,17 @@ class WrRecColl extends Item {
7575
display: inline-block;
7676
}
7777
78+
@media screen and (max-width: 768px) {
79+
div.has-addons {
80+
flex-wrap: wrap;
81+
justify-content: flex-end;
82+
}
83+
84+
div.has-addons form {
85+
display: contents;
86+
}
87+
}
88+
7889
${Item.compStyles}
7990
`;
8091
}
@@ -151,48 +162,50 @@ class WrRecColl extends Item {
151162
}
152163

153164
return html`
154-
<a
155-
href="#"
156-
role="button"
157-
class="button is-borderless"
158-
style="margin-top: 2px"
159-
id="fullscreen"
160-
@click="${this.onFullscreenToggle}"
161-
@keyup="${clickOnSpacebarPress}"
162-
title="${this.isFullscreen ? "Exit Full Screen" : "Full Screen"}"
163-
aria-label="${this.isFullscreen ? "Exit Fullscreen" : "Fullscreen"}"
164-
>
165-
<span class="icon is-small">
166-
<fa-icon
167-
size="1.0em"
168-
class="has-text-grey"
169-
aria-hidden="true"
170-
.svg="${this.isFullscreen ? fasUnfullscreen : fasFullscreen}"
171-
></fa-icon>
165+
<div class="is-flex is-flex-direction-row">
166+
<a
167+
href="#"
168+
role="button"
169+
class="button is-borderless"
170+
style="margin-top: 2px"
171+
id="fullscreen"
172+
@click="${this.onFullscreenToggle}"
173+
@keyup="${clickOnSpacebarPress}"
174+
title="${this.isFullscreen ? "Exit Full Screen" : "Full Screen"}"
175+
aria-label="${this.isFullscreen ? "Exit Fullscreen" : "Fullscreen"}"
176+
>
177+
<span class="icon is-small">
178+
<fa-icon
179+
size="1.0em"
180+
class="has-text-grey"
181+
aria-hidden="true"
182+
.svg="${this.isFullscreen ? fasUnfullscreen : fasFullscreen}"
183+
></fa-icon>
184+
</span>
185+
</a>
186+
<span class="rec-button" title="Archiving">
187+
<span class="dot"></span>
188+
<span class="size-label">${prettyBytes(this.totalSize)}</span>
172189
</span>
173-
</a>
174-
<span class="rec-button" title="Archiving">
175-
<span class="dot"></span>
176-
<span class="size-label">${prettyBytes(this.totalSize)}</span>
177-
</span>
178-
${this.showFinish
179-
? html` <button
180-
class="button is-primary-new"
181-
@click="${this.onEmbedFinish}"
182-
type="button"
183-
>
184-
Finish
185-
</button>`
186-
: html`
187-
<a
190+
${this.showFinish
191+
? html` <button
188192
class="button is-primary-new"
189-
role="button"
190-
download="my-archive.wacz"
191-
href="${this.downloadUrl}"
192-
target="_blank"
193-
>Download</a
193+
@click="${this.onEmbedFinish}"
194+
type="button"
194195
>
195-
`}
196+
Finish
197+
</button>`
198+
: html`
199+
<a
200+
class="button is-primary-new"
201+
role="button"
202+
download="my-archive.wacz"
203+
href="${this.downloadUrl}"
204+
target="_blank"
205+
>Download</a
206+
>
207+
`}
208+
</div>
196209
`;
197210
}
198211

0 commit comments

Comments
 (0)