mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Fix review UI (#27322)
Close #26730 1. The `diff-detail-box` was abused, it shouldn't be used for "DiffFileList/DiffFileTree". 2. Fix the sticky position for various screens.   
This commit is contained in:
		@@ -36,7 +36,7 @@ export default {
 | 
			
		||||
};
 | 
			
		||||
</script>
 | 
			
		||||
<template>
 | 
			
		||||
  <ol class="diff-detail-box diff-stats gt-m-0" ref="root" v-if="store.fileListIsVisible">
 | 
			
		||||
  <ol class="diff-stats gt-m-0" ref="root" v-if="store.fileListIsVisible">
 | 
			
		||||
    <li v-for="file in store.files" :key="file.NameHash">
 | 
			
		||||
      <div class="gt-font-semibold gt-df gt-ac pull-right">
 | 
			
		||||
        <span v-if="file.IsBin" class="gt-ml-1 gt-mr-3">{{ store.binaryFileMessage }}</span>
 | 
			
		||||
 
 | 
			
		||||
@@ -126,7 +126,7 @@ export default {
 | 
			
		||||
};
 | 
			
		||||
</script>
 | 
			
		||||
<template>
 | 
			
		||||
  <div v-if="store.fileTreeIsVisible" class="gt-mr-3 gt-mt-3 diff-detail-box">
 | 
			
		||||
  <div v-if="store.fileTreeIsVisible" class="gt-mr-3">
 | 
			
		||||
    <!-- only render the tree if we're visible. in many cases this is something that doesn't change very often -->
 | 
			
		||||
    <DiffFileTreeItem v-for="item in fileTree" :key="item.name" :item="item"/>
 | 
			
		||||
    <div v-if="store.isIncomplete" class="gt-pt-2">
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user