-
Notifications
You must be signed in to change notification settings - Fork 3
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
UI polish #5
Comments
The Will need to figure out how to style row icons without breaking other tables. I think when we merge Javascript Plugins we can add row icons as a feature there, so we don't have to do style hacks in this plugin |
This seems to work: diff --git a/datasette_write_ui/static/table.css b/datasette_write_ui/static/table.css
index 1177b2d..69cdc65 100644
--- a/datasette_write_ui/static/table.css
+++ b/datasette_write_ui/static/table.css
@@ -33,15 +33,27 @@
cursor: pointer;
}
-.row-icon {
+td.type-pk {
position: relative;
- width: 1rem;
- height: 1rem;
- font-size: 1rem;
- display: inline-block;
- padding-right: 0.25rem;
+ padding-left: 1.5em;
+}
+
+.row-icon {
+ position: absolute;
+ left: 0;
+ top: 0.2em;
+ width: 1em;
+}
+@media only screen and (max-width: 576px) {
+ .row-icon {
+ top: 1.2em;
+ }
+ td.type-pk {
+ padding-left: 10%;
+ }
}
+
.row-icon .icon {
background: none;
border: none;
@@ -71,10 +83,6 @@
cursor: pointer;
}
-td {
- white-space: nowrap !important;
-}
-
.form-fields-container {
display: grid;
grid-template-columns: 200px auto; PR incoming. |
simonw
added a commit
that referenced
this issue
Aug 18, 2023
Merged
asg017
pushed a commit
that referenced
this issue
Aug 18, 2023
simonw
added a commit
that referenced
this issue
Sep 9, 2023
asg017
pushed a commit
that referenced
this issue
Sep 18, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: