mirror of
https://github.com/SinTan1729/chhoto-url
synced 2025-04-19 19:30:01 -05:00
Compare commits
No commits in common. "fd74a941d93ec948bfcaf321ecf40780d4cb89d7" and "5a5a1bc7752a0bed1b23779f3da1833878d08c1c" have entirely different histories.
fd74a941d9
...
5a5a1bc775
4 changed files with 16 additions and 18 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.8"
|
version = "5.0.7"
|
||||||
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.8"
|
version = "5.0.7"
|
||||||
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,7 +126,6 @@ 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 = "×";
|
||||||
|
@ -143,8 +142,7 @@ const deleteButton = (shortUrl) => {
|
||||||
};
|
};
|
||||||
td.setAttribute("name", "deleteBtn");
|
td.setAttribute("name", "deleteBtn");
|
||||||
td.setAttribute("label", "Delete");
|
td.setAttribute("label", "Delete");
|
||||||
div.appendChild(btn);
|
td.appendChild(btn);
|
||||||
td.appendChild(div);
|
|
||||||
return td;
|
return td;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -28,18 +28,14 @@ table tr td div {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
td[name="deleteBtn"] div {
|
td[name="deleteBtn"] {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
td[name="deleteBtn"] {
|
td[name="deleteBtn"] button {
|
||||||
text-align: center;
|
border-radius: 50%;
|
||||||
}
|
|
||||||
|
|
||||||
td[name="deleteBtn"] div button {
|
|
||||||
border-radius: 100%;
|
|
||||||
aspect-ratio: 1;
|
aspect-ratio: 1;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -114,8 +110,6 @@ 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 {
|
||||||
|
@ -126,7 +120,13 @@ 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