Skip to content

Commit 19fc1ba

Browse files
authored
Embed UI Tweaks (#266)
- Add fullscreen button embed UI - Adjust Finish button background, remove border, adjust spacing. - bump to 0.13.2
1 parent 2e7d1d2 commit 19fc1ba

File tree

2 files changed

+39
-6
lines changed

2 files changed

+39
-6
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.1",
4+
"version": "0.13.2",
55
"main": "index.js",
66
"description": "Create Web Archives directly in your browser",
77
"repository": {

src/ui/coll.ts

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import {
66
apiPrefix,
77
} from "replaywebpage";
88

9+
import fasFullscreen from "@fortawesome/fontawesome-free/svgs/solid/desktop.svg";
10+
import fasUnfullscreen from "@fortawesome/fontawesome-free/svgs/solid/compress-arrows-alt.svg";
11+
912
import { type PropertyValues } from "lit";
1013
import { property, state } from "lit/decorators.js";
1114

@@ -42,11 +45,21 @@ class WrRecColl extends Item {
4245
flex-direction: row;
4346
margin: 0 1px;
4447
align-items: center;
45-
border: 1px darkgrey solid;
46-
border-radius: 16px;
4748
padding: 0 0.5em;
4849
min-width: max-content;
49-
margin-left: 0.5mm;
50+
margin-left: 1em;
51+
height: 40px;
52+
}
53+
54+
.button.is-primary-new {
55+
background-color: #4d7c0f;
56+
border-color: rgba(0, 0, 0, 0);
57+
color: rgb(255, 255, 255);
58+
border-radius: 6px;
59+
}
60+
61+
.button.is-primary-new:hover {
62+
background-color: #3a5f09;
5063
}
5164
5265
.size-label {
@@ -138,21 +151,41 @@ class WrRecColl extends Item {
138151
}
139152

140153
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>
172+
</span>
173+
</a>
141174
<span class="rec-button" title="Archiving">
142175
<span class="dot"></span>
143176
<span class="size-label">${prettyBytes(this.totalSize)}</span>
144177
</span>
145178
${this.showFinish
146179
? html` <button
147-
class="button is-primary"
180+
class="button is-primary-new"
148181
@click="${this.onEmbedFinish}"
149182
type="button"
150183
>
151184
Finish
152185
</button>`
153186
: html`
154187
<a
155-
class="button is-primary"
188+
class="button is-primary-new"
156189
role="button"
157190
download="my-archive.wacz"
158191
href="${this.downloadUrl}"

0 commit comments

Comments
 (0)