summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_shared/components/file_row_header.vue
blob: 5afb2408c7e1e4734c17bc08350c6a219bebd072 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<script>
import { GlTruncate } from '@gitlab/ui';

export default {
  components: {
    GlTruncate,
  },
  props: {
    path: {
      type: String,
      required: true,
    },
  },
};
</script>

<template>
  <div class="file-row-header bg-white sticky-top p-2 js-file-row-header" :title="path">
    <gl-truncate :text="path" position="middle" class="bold" />
  </div>
</template>