Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix files in new tab bug #107

Closed
wants to merge 1 commit into from
Closed

fix files in new tab bug #107

wants to merge 1 commit into from

Conversation

alessandroamella
Copy link

Keep track of whether to open files in a new tab or not (in $settings), and fix the open in new tab bug

@alessandroamella alessandroamella requested review from VaiTon and a team as code owners October 7, 2023 12:18
@vercel
Copy link

vercel bot commented Oct 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dynamik ✅ Ready (Inspect) Visit Preview Oct 7, 2023 0:18am

Comment on lines +23 to +31
{#if $settings.newTab}
<a class="link link-hover text-primary" href="{$page.url}/{data.name}" target="_blank" rel="noreferrer">
{data.name}
</a>
{:else}
<a class="link link-hover text-primary" href="{$page.url}/{data.name}">
{data.name}
</a>
{/if}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of this if else you can just do

target={$settings.newTab ? "_blank" : null}

and same for rel

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please run prettier format on this file

@ali-benny
Copy link
Member

ali-benny commented Oct 7, 2023

and fix the open in new tab bug

A quale bug ti riferisci?

Btw esisteva già una PR sul newTab.. #104

@VaiTon
Copy link
Member

VaiTon commented Oct 7, 2023

@Bitrey non è la stessa di #104 ?

@alessandroamella
Copy link
Author

alessandroamella commented Oct 7, 2023

Confermo, colpa mia che non avevo guardato

@ali-benny ali-benny deleted the newtab_fix branch November 16, 2023 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants