Pārlūkot izejas kodu

Merge pull request #1772 from visuddhinanda/agile

🔥 backgroundColor in SentEdit Card
visuddhinanda 2 gadi atpakaļ
vecāks
revīzija
026fd123f3

+ 3 - 1
dashboard/src/components/template/ParaShell.tsx

@@ -46,10 +46,12 @@ const ParaShellCtl = ({
       style={{
       style={{
         border: isFocus
         border: isFocus
           ? "2px solid #e35f00bd "
           ? "2px solid #e35f00bd "
-          : "2px solid rgba(0, 107, 255, 0.4)",
+          : "2px solid rgba(0, 107, 255, 0.3)",
         borderRadius: 6,
         borderRadius: 6,
         marginTop: 20,
         marginTop: 20,
         paddingTop: 16,
         paddingTop: 16,
+        paddingLeft: 4,
+        paddingRight: 4,
       }}
       }}
     >
     >
       <div
       <div

+ 10 - 7
dashboard/src/components/template/QuoteLink.tsx

@@ -12,6 +12,7 @@ interface IWidgetQuoteLinkCtl {
   book?: number;
   book?: number;
   para?: number;
   para?: number;
   term?: IWidgetTermCtl;
   term?: IWidgetTermCtl;
+  title?: string;
 }
 }
 const QuoteLinkCtl = ({
 const QuoteLinkCtl = ({
   type,
   type,
@@ -23,20 +24,22 @@ const QuoteLinkCtl = ({
   book,
   book,
   para,
   para,
   term,
   term,
+  title,
 }: IWidgetQuoteLinkCtl) => {
 }: IWidgetQuoteLinkCtl) => {
-  const abbr = bookNameLocal
-    ? bookNameLocal
-    : _bookName.find((value) => value.term === bookName)?.abbr;
   let textShow = ` ${volume}.${page}`;
   let textShow = ` ${volume}.${page}`;
 
 
   return (
   return (
     <>
     <>
       <ArticleCtl
       <ArticleCtl
         title={
         title={
-          <>
-            <TermCtl {...term} compact={true} />
-            {textShow}
-          </>
+          title ? (
+            title
+          ) : (
+            <>
+              <TermCtl {...term} compact={true} />
+              {textShow}
+            </>
+          )
         }
         }
         type={"page"}
         type={"page"}
         focus={book && para ? `${book}-${para}` : undefined}
         focus={book && para ? `${book}-${para}` : undefined}

+ 1 - 1
dashboard/src/components/template/SentEdit.tsx

@@ -132,7 +132,7 @@ export const SentEditInner = ({
         border: "2px solid rgb(128 128 128 / 30%)",
         border: "2px solid rgb(128 128 128 / 30%)",
         marginTop: 4,
         marginTop: 4,
         borderRadius: 6,
         borderRadius: 6,
-        backgroundColor: "rgb(245 245 245)",
+        backgroundColor: "rgb(255 255 255 / 8%)",
       }}
       }}
       size="small"
       size="small"
     >
     >