mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-11-04 13:46:13 +08:00 
			
		
		
		
	Add conditional rendering to description
* Modify Details component * Modify MonitorList component
This commit is contained in:
		@@ -23,7 +23,7 @@
 | 
				
			|||||||
                        <div class="info">
 | 
					                        <div class="info">
 | 
				
			||||||
                            <Uptime :monitor="item" type="24" :pill="true" />
 | 
					                            <Uptime :monitor="item" type="24" :pill="true" />
 | 
				
			||||||
                            {{ item.name }}
 | 
					                            {{ item.name }}
 | 
				
			||||||
                            <span :title="item.description">
 | 
					                            <span v-if="item.description" :title="item.description">
 | 
				
			||||||
                                <font-awesome-icon icon="info-circle" />
 | 
					                                <font-awesome-icon icon="info-circle" />
 | 
				
			||||||
                            </span>
 | 
					                            </span>
 | 
				
			||||||
                        </div>
 | 
					                        </div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@
 | 
				
			|||||||
    <transition name="slide-fade" appear>
 | 
					    <transition name="slide-fade" appear>
 | 
				
			||||||
        <div v-if="monitor">
 | 
					        <div v-if="monitor">
 | 
				
			||||||
            <h1> {{ monitor.name }}</h1>
 | 
					            <h1> {{ monitor.name }}</h1>
 | 
				
			||||||
            <p>{{ monitor.description }}</p>
 | 
					            <p v-if="monitor.description">{{ monitor.description }}</p>
 | 
				
			||||||
            <div class="tags">
 | 
					            <div class="tags">
 | 
				
			||||||
                <Tag v-for="tag in monitor.tags" :key="tag.id" :item="tag" :size="'sm'" />
 | 
					                <Tag v-for="tag in monitor.tags" :key="tag.id" :item="tag" :size="'sm'" />
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user