mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-05-12 22:10:25 +00:00
fix(ui): replace obsolete gt- helpers (#9964)
Resolved a few obsolete (no longer functional) `gt-` helpers that were not converted into other classes at some point. `gt-interact-bg` was replaced by `interact-bg`. The remaining one was on action view page in a gear icon, which lacked proper background change on hover. `gt-font-18` & `gt-font-normal` were remaining in the repo name on repo page. I left out the `*-font-18` one out and kept fixed the font-weight, but also made the `/` use normal font-weight instead of semibold, which looks better. Preview Before: https://codeberg.org/attachments/e52d5ebc-7fa8-4057-8e4b-05d219525092 Gitea: https://codeberg.org/attachments/a9a50928-6e0e-483c-82fe-73b6c244f4d5 After: https://codeberg.org/attachments/fd04d5b1-1965-478f-9d45-97c5d994c780 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9964 Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
parent
859caa35c5
commit
2f6ca55a1c
3 changed files with 16 additions and 3 deletions
|
|
@ -7,8 +7,8 @@
|
|||
{{template "repo/icon" .}}
|
||||
</div>
|
||||
<div class="flex-item-main">
|
||||
<div class="flex-item-title gt-font-18">
|
||||
<a class="muted gt-font-normal" href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>/<a class="muted" href="{{$.RepoLink}}">{{.Name}}</a>
|
||||
<div class="flex-item-title tw-font-normal">
|
||||
<a class="muted" href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>/<a class="muted tw-font-semibold" href="{{$.RepoLink}}">{{.Name}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-item-trailing">
|
||||
|
|
|
|||
|
|
@ -31,6 +31,19 @@ test('Language stats bar', async ({browser}) => {
|
|||
await screenshot(page);
|
||||
});
|
||||
|
||||
test('Repo title', async ({browser}) => {
|
||||
const context = await browser.newContext({javaScriptEnabled: false});
|
||||
const page = await context.newPage();
|
||||
|
||||
const response = await page.goto('/user2/repo1');
|
||||
expect(response?.status()).toBe(200);
|
||||
|
||||
const repoHeader = page.locator('.repo-header');
|
||||
expect(await repoHeader.locator('.flex-item-title').evaluate((el) => getComputedStyle(el).fontWeight)).toBe('400');
|
||||
expect(await repoHeader.locator('.flex-item-title a[href="/user2"]').evaluate((el) => getComputedStyle(el).fontWeight)).toBe('400');
|
||||
expect(await repoHeader.locator('.flex-item-title a[href="/user2/repo1"]').evaluate((el) => getComputedStyle(el).fontWeight)).toBe('600');
|
||||
});
|
||||
|
||||
test('Branch selector commit icon', async ({page}) => {
|
||||
const response = await page.goto('/user2/repo1');
|
||||
expect(response?.status()).toBe(200);
|
||||
|
|
|
|||
|
|
@ -637,7 +637,7 @@ export default {
|
|||
</div>
|
||||
<div class="job-info-header-right">
|
||||
<div class="ui top right pointing dropdown dark-dropdown custom jump item job-gear-dropdown" @click.stop="toggleGearDropdown()">
|
||||
<button class="btn gt-interact-bg tw-p-2">
|
||||
<button class="btn interact-bg tw-p-2">
|
||||
<SvgIcon name="octicon-gear" :size="18"/>
|
||||
</button>
|
||||
<div class="menu transition action-job-menu" :class="{visible: displayGearDropdown}" v-if="displayGearDropdown" v-cloak>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue