-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update dotfiles layout in user preferences #10136
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,24 +123,27 @@ export default function Preferences() { | |
</PillLabel> | ||
</h3> | ||
<p className="text-base text-gray-500 dark:text-gray-400">Customize workspaces using dotfiles.</p> | ||
<div className="mt-4 max-w-md"> | ||
<div className="mt-4 max-w-xl"> | ||
<h4>Repository URL</h4> | ||
<input | ||
type="text" | ||
value={dotfileRepo} | ||
className="w-full" | ||
placeholder="e.g. https://github.com/username/dotfiles" | ||
onChange={(e) => setDotfileRepo(e.target.value)} | ||
/> | ||
<span className="flex"> | ||
<input | ||
type="text" | ||
value={dotfileRepo} | ||
className="w-96 h-9" | ||
placeholder="e.g. https://github.com/username/dotfiles" | ||
onChange={(e) => setDotfileRepo(e.target.value)} | ||
/> | ||
<button className="secondary ml-2" onClick={() => actuallySetDotfileRepo(dotfileRepo)}> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thought: Using the secondary class here, as this does not need to be a primary action across all preferences, see relevant comment in #7639 (comment). |
||
Save Changes | ||
</button> | ||
</span> | ||
<div className="mt-1"> | ||
<p className="text-gray-500 dark:text-gray-400"> | ||
Add a repository URL that includes dotfiles. Gitpod will clone and install your dotfiles for | ||
every new workspace. | ||
Add a repository URL that includes dotfiles. Gitpod will | ||
<br /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thought: Another hack around the needs to resolve #7639, see relevant comment in #7639 (comment). |
||
clone and install your dotfiles for every new workspace. | ||
</p> | ||
</div> | ||
<div className="mt-4 max-w-md"> | ||
<button onClick={() => actuallySetDotfileRepo(dotfileRepo)}>Save Changes</button> | ||
</div> | ||
</div> | ||
</PageWithSubMenu> | ||
</div> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thought: It's painful to see the custom height here, but does the job for now.☺️