Skip to content

Commit

Permalink
tooltip is more understandable
Browse files Browse the repository at this point in the history
  • Loading branch information
chengr4 committed Apr 2, 2024
1 parent ab3065f commit 38b1b64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions site/frontend/src/components/tab.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script setup lang="ts">
const props = defineProps<{
extraInfo: string;
tooltip: string;
title: string;
selected: boolean;
}>();
</script>

<template>
<div class="tab" :title="props.extraInfo" :class="{selected: props.selected}">
<div class="tab" :title="props.tooltip" :class="{selected: props.selected}">
<div class="title">{{ props.title }}</div>
<div class="summary">
<slot name="summary"></slot>
Expand Down
8 changes: 4 additions & 4 deletions site/frontend/src/pages/compare/tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const activeTab: Ref<Tab> = ref(props.initialTab);
<template>
<div class="wrapper">
<TabComponent
:extra-info="'Compilation time benchmarks: measure how long does it take to compile various crates using the compared rustc.'"
:tooltip="'Compilation time benchmarks: measure how long does it take to compile various crates using the compared rustc.'"
:title="'Compile-time'"
:selected="activeTab === Tab.CompileTime"
@click="changeTab(Tab.CompileTime)"
Expand All @@ -109,7 +109,7 @@ const activeTab: Ref<Tab> = ref(props.initialTab);
</template>
</TabComponent>
<TabComponent
:extra-info="'Runtime benchmarks: measure how long does it take to execute (i.e. how fast are) programs compiled by the compared rustc.'"
:tooltip="'Runtime benchmarks: measure how long does it take to execute (i.e. how fast are) programs compiled by the compared rustc.'"
:title="'Runtime'"
:selected="activeTab === Tab.Runtime"
@click="changeTab(Tab.Runtime)"
Expand All @@ -119,7 +119,7 @@ const activeTab: Ref<Tab> = ref(props.initialTab);
</template>
</TabComponent>
<TabComponent
:extra-info="'Bootstrap duration: measures how long does it take to compile rustc by itself.'"
:tooltip="'Bootstrap duration: measures how long does it take to compile rustc by itself.'"
:title="'Bootstrap'"
:selected="activeTab === Tab.Bootstrap"
@click="changeTab(Tab.Bootstrap)"
Expand All @@ -140,7 +140,7 @@ const activeTab: Ref<Tab> = ref(props.initialTab);
</template>
</TabComponent>
<TabComponent
:extra-info="'Artifact size: sizes of individual components of the two artifacts.'"
:tooltip="'Artifact size: sizes of individual components of the two artifacts.'"
:title="'Artifact size'"
v-if="sizesAvailable"
:selected="activeTab === Tab.ArtifactSize"
Expand Down

0 comments on commit 38b1b64

Please sign in to comment.