Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7b849f7

Browse files
committed
Fixed a display issue for long ipv6 addresses and port input on mobile
1 parent98f9efb commit7b849f7

File tree

4 files changed

+19
-18
lines changed

4 files changed

+19
-18
lines changed

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ endif
7171
@sha256sum $(GOPATH)/bin/$(XBIN)
7272

7373
run:
74-
go run cmd/echoip/main.go -a data/asn.mmdb -c data/city.mmdb -f data/country.mmdb -H x-forwarded-for -r -s
74+
go run cmd/echoip/main.go -a data/asn.mmdb -c data/city.mmdb -f data/country.mmdb -H x-forwarded-for -r -s -p

‎html/index.html‎

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -200,52 +200,52 @@ <h2>How do I get this programmatically?</h2>
200200
</p>
201201
<divclass="pure-form">
202202
<!-- COMMAND WIDGET -->
203-
<divclass="buttons">
203+
<divclass="input-buttons">
204204
<button
205205
name="ip"
206-
class="button widget-select"
206+
class="pure-button widget-select"
207207
onclick="changeInput(this.name, this)"
208208
>
209209
ip
210210
</button>
211211
<button
212212
name="country"
213-
class="button widget-select"
213+
class="pure-button widget-select"
214214
onclick="changeInput(this.name, this)"
215215
>
216216
country
217217
</button>
218218
<button
219219
name="country-iso"
220-
class="button widget-select"
220+
class="pure-button widget-select"
221221
onclick="changeInput(this.name, this)"
222222
>
223223
country-iso
224224
</button>
225225
<button
226226
name="city"
227-
class="button widget-select"
227+
class="pure-button widget-select"
228228
onclick="changeInput(this.name, this)"
229229
>
230230
city
231231
</button>
232232
<button
233233
name="asn"
234-
class="button widget-select"
234+
class="pure-button widget-select"
235235
onclick="changeInput(this.name, this)"
236236
>
237237
asn
238238
</button>
239239
<button
240240
name="json"
241-
class="button widget-select"
241+
class="pure-button widget-select"
242242
onclick="changeInput(this.name, this)"
243243
>
244244
json
245245
</button>
246246
<button
247247
name="port"
248-
class="button widget-select"
248+
class="pure-button widget-select"
249249
onclick="changeInput(this.name, this)"
250250
>
251251
port
@@ -266,12 +266,13 @@ <h2>How do I get this programmatically?</h2>
266266
</div>
267267
<divid="output"class="widgetbox output"></div>
268268

269-
<formclass="pure-form">
269+
<formclass="pure-form input-buttons">
270270
<fieldset>
271-
<labelfor="ipCheckBox">
271+
<labelfor="ipInput">
272+
Check another IP (optional)
272273
<input
273274
id="ipInput"
274-
class="medium-input pure-input"
275+
class=""
275276
type="text"
276277
placeholder="IP to query"
277278
onkeyup="updateIP(this.value)"

‎html/script.html‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
functionnavigate(event){
7272
console.log("navigate",compositePath)
7373
window.location=compositePath
74-
event.preventDefault()
7574
}
7675

7776
functionupdatePort(value){

‎html/styles.html‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
background:#f2f2f2;
2727
font-size:36px;
2828
padding:6px;
29+
word-wrap: break-word;
2930
}
3031
svg.github-corner {
3132
fill:#151513;
@@ -88,11 +89,6 @@
8889
text-align: right;
8990
}
9091

91-
.narrow-input {
92-
width:5.5em;
93-
margin-top:0.2em;
94-
}
95-
9692
.medium-input {
9793
width:10em;
9894
}
@@ -101,6 +97,11 @@
10197
background-color:rgb(208208208);
10298
}
10399

100+
.input-buttons {
101+
line-height:2.6em;
102+
font-size: smaller;
103+
}
104+
104105
/* POST CORRECTION */
105106
.leafcloud-logo .letters {
106107
fill: black;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp