mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	Replace some gt- classes with tw- (#29570)
				
					
				
			Replace 18 `gt-` prefixes with `tw-` with perl replacement. I manually checked them all with `rg` afterwards.
This commit is contained in:
		| @@ -278,7 +278,7 @@ export default sfc; // activate IDE's Vue plugin | ||||
|           <div class="ui label" v-if="item.name===repoDefaultBranch && mode === 'branches'"> | ||||
|             {{ textDefaultBranchLabel }} | ||||
|           </div> | ||||
|           <a v-show="enableFeed && mode === 'branches'" role="button" class="rss-icon gt-float-right" :href="rssURLPrefix + item.url" target="_blank" @click.stop> | ||||
|           <a v-show="enableFeed && mode === 'branches'" role="button" class="rss-icon tw-float-right" :href="rssURLPrefix + item.url" target="_blank" @click.stop> | ||||
|             <!-- creating a lot of Vue component is pretty slow, so we use a static SVG here --> | ||||
|             <svg width="14" height="14" class="svg octicon-rss"><use href="#svg-symbol-octicon-rss"/></svg> | ||||
|           </a> | ||||
|   | ||||
| @@ -234,7 +234,7 @@ export function initDropzone(el) { | ||||
|         // Create a "Copy Link" element, to conveniently copy the image | ||||
|         // or file link as Markdown to the clipboard | ||||
|         const copyLinkElement = document.createElement('div'); | ||||
|         copyLinkElement.className = 'gt-text-center'; | ||||
|         copyLinkElement.className = 'tw-text-center'; | ||||
|         // The a element has a hardcoded cursor: pointer because the default is overridden by .dropzone | ||||
|         copyLinkElement.innerHTML = `<a href="#" style="cursor: pointer;">${svg('octicon-copy', 14, 'copy link')} Copy link</a>`; | ||||
|         copyLinkElement.addEventListener('click', async (e) => { | ||||
|   | ||||
| @@ -17,7 +17,7 @@ export function initGiteaFomantic() { | ||||
|   // By default, use "exact match" for full text search | ||||
|   $.fn.dropdown.settings.fullTextSearch = 'exact'; | ||||
|   // Do not use "cursor: pointer" for dropdown labels | ||||
|   $.fn.dropdown.settings.className.label += ' gt-cursor-default'; | ||||
|   $.fn.dropdown.settings.className.label += ' tw-cursor-default'; | ||||
|   // Always use Gitea's SVG icons | ||||
|   $.fn.dropdown.settings.templates.label = function(_value, text, preserveHTML, className) { | ||||
|     const escape = $.fn.dropdown.settings.templates.escape; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user