Skip to content

Commit

Permalink
Fix styling of visualization items
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Dec 19, 2024
1 parent c159aa4 commit fa30172
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions client/src/components/Panels/VisualizationPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ onMounted(() => {
<h3>Create Visualization</h3>
<DelayedInput :delay="100" placeholder="Search visualizations" @change="query = $event" />
</template>
<div class="overflow-y mt-2">
<div>
<LoadingSpan v-if="isLoading" message="Loading visualizations" />
<div v-else-if="filteredPlugins.length > 0">
<div v-for="plugin in filteredPlugins" :key="plugin.name">
<button :data-plugin-name="plugin.name" @click="selectVisualization(plugin)">
<button class="plugin-item" :data-plugin-name="plugin.name" @click="selectVisualization(plugin)">
<div class="d-flex">
<div class="plugin-thumbnail mr-2">
<img v-if="plugin.logo" alt="visualization" :src="absPath(plugin.logo)" />
Expand Down Expand Up @@ -143,6 +143,20 @@ onMounted(() => {
</template>

<style lang="scss">
@import "theme/blue.scss";
.plugin-item {
background: none;
border: none;
text-align: left;
transition: none;
width: 100%;
}
.plugin-item:hover {
background: $gray-200;
}
.plugin-thumbnail {
img {
width: 2rem;
Expand Down

0 comments on commit fa30172

Please sign in to comment.