Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotate vertical profile icon #974

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading