Skip to content

Commit

Permalink
Merge pull request #743 from hogashi/fixpopupbutton
Browse files Browse the repository at this point in the history
wide save button
  • Loading branch information
hogashi authored Nov 8, 2024
2 parents f0e0ecc + a0a7676 commit cc7ea29
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/__snapshots__/popup.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ exports[`Popup render 1`] = `
</div>
</div>
<button
className="saveSettingButton rounded-md bg-indigo-600 w-1/2 mt-1 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
className="saveSettingButton rounded-md bg-indigo-600 w-4/5 mt-1 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
onClick={[Function]}
type="submit"
>
Expand Down
12 changes: 12 additions & 0 deletions dist/css/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,10 @@ video {
height: 1.5rem;
}

.w-1 {
width: 0.25rem;
}

.w-1\/2 {
width: 50%;
}
Expand All @@ -595,6 +599,14 @@ video {
width: 1rem;
}

.w-2 {
width: 0.5rem;
}

.w-4\/5 {
width: 80%;
}

.flex-col {
flex-direction: column;
}
Expand Down
2 changes: 1 addition & 1 deletion src/extension-contexts/popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export const Popup = (props: Props): JSX.Element => {
</div>
<button
type="submit"
className="saveSettingButton rounded-md bg-indigo-600 w-1/2 mt-1 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
className="saveSettingButton rounded-md bg-indigo-600 w-4/5 mt-1 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
onClick={onSave}
>
{saveButtonText}
Expand Down

0 comments on commit cc7ea29

Please sign in to comment.