Skip to content

Commit 2d072f1

Browse files
committed
ui: add full screen indicator to embed ui, remove border around size display
1 parent 2e7d1d2 commit 2d072f1

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

src/ui/coll.ts

Lines changed: 25 additions & 3 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,10 @@ 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;
5052
}
5153
5254
.size-label {
@@ -138,6 +140,26 @@ class WrRecColl extends Item {
138140
}
139141

140142
return html`
143+
<a
144+
href="#"
145+
role="button"
146+
class="button is-borderless"
147+
style="margin-top: 2px"
148+
id="fullscreen"
149+
@click="${this.onFullscreenToggle}"
150+
@keyup="${clickOnSpacebarPress}"
151+
title="${this.isFullscreen ? "Exit Full Screen" : "Full Screen"}"
152+
aria-label="${this.isFullscreen ? "Exit Fullscreen" : "Fullscreen"}"
153+
>
154+
<span class="icon is-small">
155+
<fa-icon
156+
size="1.0em"
157+
class="has-text-grey"
158+
aria-hidden="true"
159+
.svg="${this.isFullscreen ? fasUnfullscreen : fasFullscreen}"
160+
></fa-icon>
161+
</span>
162+
</a>
141163
<span class="rec-button" title="Archiving">
142164
<span class="dot"></span>
143165
<span class="size-label">${prettyBytes(this.totalSize)}</span>

0 commit comments

Comments
 (0)