mirror of
https://github.com/SinTan1729/chhoto-url
synced 2024-12-26 23:58:35 -06:00
Compare commits
3 commits
5a5a1bc775
...
fd74a941d9
Author | SHA1 | Date | |
---|---|---|---|
fd74a941d9 | |||
2cab341e8b | |||
2a2ed7e41a |
4 changed files with 18 additions and 16 deletions
2
actix/Cargo.lock
generated
2
actix/Cargo.lock
generated
|
@ -475,7 +475,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "chhoto-url"
|
name = "chhoto-url"
|
||||||
version = "5.0.7"
|
version = "5.0.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"actix-files",
|
"actix-files",
|
||||||
"actix-session",
|
"actix-session",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "chhoto-url"
|
name = "chhoto-url"
|
||||||
version = "5.0.7"
|
version = "5.0.8"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Sayantan Santra <sayantan[dot]santra689[at]gmail[dot]com"]
|
authors = ["Sayantan Santra <sayantan[dot]santra689[at]gmail[dot]com"]
|
||||||
license = "mit"
|
license = "mit"
|
||||||
|
|
|
@ -126,6 +126,7 @@ const A_SHORT_INSECURE = (s, t) => `<a href="${t}/${s}">${s}</a>`;
|
||||||
|
|
||||||
const deleteButton = (shortUrl) => {
|
const deleteButton = (shortUrl) => {
|
||||||
const td = document.createElement("td");
|
const td = document.createElement("td");
|
||||||
|
const div = document.createElement("div");
|
||||||
const btn = document.createElement("button");
|
const btn = document.createElement("button");
|
||||||
|
|
||||||
btn.innerHTML = "×";
|
btn.innerHTML = "×";
|
||||||
|
@ -142,7 +143,8 @@ const deleteButton = (shortUrl) => {
|
||||||
};
|
};
|
||||||
td.setAttribute("name", "deleteBtn");
|
td.setAttribute("name", "deleteBtn");
|
||||||
td.setAttribute("label", "Delete");
|
td.setAttribute("label", "Delete");
|
||||||
td.appendChild(btn);
|
div.appendChild(btn);
|
||||||
|
td.appendChild(div);
|
||||||
return td;
|
return td;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
font-family: Montserrat;
|
font-family: Montserrat;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
src: url('Montserrat.ttf');
|
src: url('Montserrat.ttf');
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: Montserrat;
|
font-family: Montserrat;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
src: url('Montserrat-Italic.ttf');
|
src: url('Montserrat-Italic.ttf');
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
font-family: Montserrat;
|
font-family: Montserrat;
|
||||||
|
@ -28,14 +28,18 @@ table tr td div {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
td[name="deleteBtn"] {
|
td[name="deleteBtn"] div {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
td[name="deleteBtn"] button {
|
td[name="deleteBtn"] {
|
||||||
border-radius: 50%;
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
td[name="deleteBtn"] div button {
|
||||||
|
border-radius: 100%;
|
||||||
aspect-ratio: 1;
|
aspect-ratio: 1;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -98,7 +102,7 @@ dialog form {
|
||||||
.pure-control-group input {
|
.pure-control-group input {
|
||||||
width: 98%;
|
width: 98%;
|
||||||
}
|
}
|
||||||
|
|
||||||
table tr {
|
table tr {
|
||||||
border-bottom: 1px solid #999;
|
border-bottom: 1px solid #999;
|
||||||
}
|
}
|
||||||
|
@ -110,6 +114,8 @@ dialog form {
|
||||||
table td {
|
table td {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: left !important;
|
justify-content: left !important;
|
||||||
|
width: 98vw;
|
||||||
|
padding: .5em .1em !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
table td::before {
|
table td::before {
|
||||||
|
@ -120,13 +126,7 @@ dialog form {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
td[name="deleteBtn"] button {
|
|
||||||
border-radius: 50%;
|
|
||||||
aspect-ratio: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pure-table caption {
|
.pure-table caption {
|
||||||
padding-top: 0px;
|
padding-top: 0px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue