lllllllillllllillll пре 1 година
родитељ
комит
23be19c4d3
2 измењених фајлова са 6 додато и 3 уклоњено
  1. 2 0
      README.md
  2. 4 3
      components/dashCard.js

+ 2 - 0
README.md

@@ -6,6 +6,8 @@ Pre-Pre-Pre-Pre-Pre Alpha v0.08 ( :fire: Experimental. Don't install on any serv
 [![GitHub Stars](https://img.shields.io/github/stars/lllllllillllllillll/DweebUI)](https://github.com/lllllllillllllillll)
 [![GitHub License](https://img.shields.io/github/license/lllllllillllllillll/DweebUI)](https://github.com/lllllllillllllillll/DweebUI/blob/main/LICENSE)
 [![GitHub Activity](https://img.shields.io/github/commit-activity/y/lllllllillllllillll/DweebUI)](https://github.com/lllllllillllllillll)
+[![Docker Pulls](https://img.shields.io/docker/pulls/lllllllillllllillll/dweebui)](https://hub.docker.com/repository/docker/lllllllillllllillll/dweebui)
+
 
 * I haven't used Github very much and I'm still new to javascript.
 * This is the first project I've ever released and I'm sure it's full of plenty of bugs and mistakes.

+ 4 - 3
components/dashCard.js

@@ -2,11 +2,12 @@ module.exports.dashCard = function dashCard(data) {
   
   let { name, service, id, state, image, external_port, internal_port, ports, volumes, environment_variables, labels, IPv4, style } = data;
 
-  
+  let margin, icon, font = '';
+
   if (style = "Large") {
     //Large cards
   } else if (style = "Compact") {
-    //Compact cards
+    margin = 'style="margin-bottom: 0;"'
   } else if (style = "Row") {
     //Row cards
   }
@@ -170,7 +171,7 @@ module.exports.dashCard = function dashCard(data) {
             </div>
           </div>
           <div class="d-flex align-items-baseline">
-            <div class="h1 me-2" title="${name}" style="margin-bottom: 0;">
+            <div class="h1 me-2" title="${name}" ${margin}>
               <a href="http://${IPv4}:${external_port}" target="_blank">
                 ${shortened_name}
               </a>