Compare commits

..

No commits in common. "bbdb5d8eca14e8a315d2579c935eca0efd9970c7" and "7fd8cb9a65909be99dc2e3f98d0613a5dabbbaa3" have entirely different histories.

2 changed files with 5 additions and 16 deletions

View File

@ -249,10 +249,10 @@ function generateDetailsHtml(item) {
let html = `<details class="custom-details" ${item.isOpen ? "open" : ""}>`; let html = `<details class="custom-details" ${item.isOpen ? "open" : ""}>`;
html += `<summary>`; html += `<summary>`;
if (item.tag) { if (item.tag) {
html += `<span class="tag" > ${item.tag} </span>`; html += `<span > ${item.tag} </span>`;
} }
html += `${item.title || "بدون عنوان"}`; html += `${escapeHtml(item.title) || "بدون عنوان"}`;
if (item.link_url) { if (item.link_url) {
html += `<a class="link-url" href="${item.link_url}">${item.link_label}</a>`; html += `<a class="link-url" href="${item.link_url}">${item.link_label}</a>`;
} }
@ -554,18 +554,6 @@ onBeforeUnmount(() => {
} }
} }
summary.tag {
color: blue;
border-radius: var(--radius) var(--radius) 0 0;
}
summary.label {
color: chocolate;
font-weight: 700;
}
summary { summary {
position: relative; position: relative;
padding: 1.25rem 1.25rem 1.25rem 3.5rem; padding: 1.25rem 1.25rem 1.25rem 3.5rem;
@ -576,6 +564,7 @@ onBeforeUnmount(() => {
); );
color: var(--color-primary-700); color: var(--color-primary-700);
border-radius: var(--radius) var(--radius) 0 0; border-radius: var(--radius) var(--radius) 0 0;
font-weight: 700;
font-size: 1.1rem; font-size: 1.1rem;
color: var(--color-dark-primary-800); color: var(--color-dark-primary-800);
// cursor: pointer; // cursor: pointer;

View File

@ -55,7 +55,7 @@ const setDataEditor = async () => {
node = { node = {
isOpen: false, isOpen: false,
id: item.section_mom_id, id: item.section_mom_id,
title: `<span class="label">قانون مقدم : </span>` + item.qanon_title + " > " + item.full_path, title: "قانون مقدم : " + item.qanon_title + " > " + item.full_path,
tag: item.state_etebar, tag: item.state_etebar,
content: _source.content1, content: _source.content1,
link_label: "«منبع»", link_label: "«منبع»",
@ -90,7 +90,7 @@ const setDataEditor = async () => {
node = { node = {
isOpen: false, isOpen: false,
id: item.section_mom_id, id: item.section_mom_id,
title: `<span class="label">قانون موخر : </span>` + item.qanon_title + " > " + item.full_path, title: "قانون موخر : " + item.qanon_title + " > " + item.full_path,
tag: item.state_etebar, tag: item.state_etebar,
content: _source.content2, content: _source.content2,
link_label: "«منبع»", link_label: "«منبع»",