Skip to content

Commit

Permalink
Merge pull request #19350 from guerler/fix_activity_panel_24.2
Browse files Browse the repository at this point in the history
[24.2] Fix simple activity panel item style
  • Loading branch information
ahmedhamidawan authored Jan 7, 2025
2 parents f8ae3ce + fa30172 commit 6d0bff4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
17 changes: 4 additions & 13 deletions client/src/components/ActivityBar/ActivitySettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ function executeActivity(activity: Activity) {
</script>

<template>
<div class="activity-settings rounded no-highlight">
<div v-if="foundActivities" class="activity-settings-content">
<div>
<div v-if="foundActivities">
<button
v-for="activity in filteredActivities"
:key="activity.id"
Expand Down Expand Up @@ -122,7 +122,7 @@ function executeActivity(activity: Activity) {
</div>
</button>
</div>
<div v-else class="activity-settings-content">
<div v-else>
<b-alert v-localize class="py-1 px-2" show> No matching activities found. </b-alert>
</div>
</div>
Expand All @@ -131,23 +131,14 @@ function executeActivity(activity: Activity) {
<style lang="scss">
@import "theme/blue.scss";
.activity-settings {
overflow-y: hidden;
display: flex;
flex-direction: column;
}
.activity-settings-content {
overflow-y: auto;
}
.activity-settings-item {
background: none;
border: none;
text-align: left;
transition: none;
width: 100%;
}
.activity-settings-item:hover {
background: $gray-200;
}
Expand Down
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 6d0bff4

Please sign in to comment.