Skip to content

Commit bede37f

Browse files
SuaYooikreymer
andauthored
Small screen layout fixes (#37)
* adjust dialog sizes * add border * dev server: starting url, start with #url=https://example.com/ --------- Co-authored-by: Ilya Kreymer <[email protected]>
1 parent c51f070 commit bede37f

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

src/archive-now.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ class ArchiveNow extends LitElement {
367367
: html``}
368368
</div>
369369
<div
370-
class="-mb-4 -mt-4 overflow-auto pb-4 pt-4 [grid-area:detail] lg:mr-0 lg:px-4 2xl:px-6"
370+
class="-mb-4 overflow-auto border-t border-brand-green/30 pb-4 [grid-area:detail] lg:-mt-4 lg:mr-0 lg:border-t-0 lg:px-4 lg:pt-4 2xl:px-6"
371371
>
372372
<div class="mb-3 mt-3">
373373
<div
@@ -606,7 +606,7 @@ class ArchiveNow extends LitElement {
606606
<div
607607
class="${this.showHint
608608
? "pointer-events-auto"
609-
: "pointer-events-none"} max-w-sm -translate-x-3 rounded-lg bg-white/80 shadow-lg shadow-cyan-800/20 ring-2 ring-cyan-300/50 backdrop-blur-md transition-all lg:mb-16 lg:translate-x-1"
609+
: "pointer-events-none"} max-w-80 -translate-x-3 rounded-lg bg-white/80 shadow-lg shadow-cyan-800/20 ring-2 ring-cyan-300/50 backdrop-blur-md transition-all lg:mb-16 lg:translate-x-1"
610610
>
611611
<div
612612
class="flex items-center justify-between p-2 leading-none"
@@ -692,10 +692,10 @@ class ArchiveNow extends LitElement {
692692
}}
693693
>
694694
<div class="flex flex-col">
695-
<div class="flex items-end gap-3 px-3 pb-3">
695+
<div class="flex flex-col items-end gap-3 pb-3 md:flex-row lg:px-3">
696696
<sl-input
697697
name="url"
698-
class="flex-1"
698+
class="w-full flex-1"
699699
label="Enter a URL"
700700
placeholder=${DEFAULT_URL.replace(/\/$/, "")}
701701
type="text"
@@ -704,7 +704,12 @@ class ArchiveNow extends LitElement {
704704
spellcheck="false"
705705
required
706706
></sl-input>
707-
<sl-button type="submit" variant="primary">Go</sl-button>
707+
<sl-button
708+
class="w-full md:max-w-min"
709+
type="submit"
710+
variant="primary"
711+
>Go</sl-button
712+
>
708713
</div>
709714
${!this.isEmpty
710715
? html`

src/global.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"header restart"
6262
"archive archive"
6363
"detail detail";
64-
grid-template-rows: min-content 1fr min-content theme(size.48);
64+
grid-template-rows: min-content 1fr 30%;
6565
grid-template-columns: 1fr auto;
6666
}
6767

webpack.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = (env, argv) => {
3333
devServer: {
3434
compress: true,
3535
port: 10001,
36-
open: true,
36+
open: "/#url=https://example.com/",
3737
static: path.join(__dirname, "dist"),
3838
hot: true,
3939
},

0 commit comments

Comments
 (0)