Skip to content

Commit

Permalink
Rotate vertical profile icon
Browse files Browse the repository at this point in the history
  • Loading branch information
hvangeffen authored and wkramer committed Sep 23, 2024
1 parent 955b6c3 commit 19c5a81
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/spatialdisplay/SpatialTimeSeriesDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
variant="text"
class="text-capitalize"
>
<v-icon>{{ item.icon }}</v-icon>
<v-icon :style="item.iconStyle">{{ item.icon }}</v-icon>
</v-btn>
</v-btn-toggle>
<v-btn
Expand Down Expand Up @@ -60,7 +60,7 @@
</template>

<script setup lang="ts">
import { ref, watch } from 'vue'
import { StyleValue, ref, watch } from 'vue'
import { configManager } from '@/services/application-config'
import WindowComponent from '@/components/general/WindowComponent.vue'
import TimeSeriesComponent from '@/components/timeseries/TimeSeriesComponent.vue'
Expand Down Expand Up @@ -132,6 +132,7 @@ interface DisplayTypeItem {
icon: string
label: string
value: DisplayType
iconStyle?: StyleValue
}

const displayType = ref(DisplayType.TimeSeriesChart)
Expand All @@ -154,6 +155,7 @@ const displayTypeItems = computed<DisplayTypeItem[]>(() => {
icon: 'mdi-elevation-rise',
label: 'Vertical profile',
value: DisplayType.ElevationChart,
iconStyle: 'transform: rotate(-90deg);',
})
}

Expand Down

0 comments on commit 19c5a81

Please sign in to comment.