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

737 css #884

Merged
merged 10 commits into from
Jan 30, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
label length ++
glenn-sorrentino committed Jan 29, 2025
commit 69586807e5fcb7441727512f9d14a1a1feb5e157
2 changes: 1 addition & 1 deletion hushline/settings/forms.py
Original file line number Diff line number Diff line change
@@ -293,7 +293,7 @@ class FieldChoiceForm(Form):

class FieldForm(FlaskForm):
id = HiddenField()
label = StringField("Label", validators=[DataRequired(), Length(max=50)])
label = StringField("Label", validators=[DataRequired(), Length(max=500)])
field_type = SelectField(
"Field Type",
choices=[(field_type.value, field_type.label()) for field_type in FieldType],
14 changes: 12 additions & 2 deletions hushline/static/css/style.css
Original file line number Diff line number Diff line change
@@ -3081,15 +3081,16 @@ strong {
}

label + p.meta {
width: fit-content;
max-width: fit-content;
width: 100%;
margin: 0;
margin-left: .5rem;
}

.label {
display: flex;
flex-direction: row;
align-items: baseline;
align-items: last baseline;
margin-bottom: 0.5rem;
}

@@ -3106,3 +3107,12 @@ input[type="checkbox"] + label,
input[type="radio"] + label {
font-family: var(--font-sans);
}

.field-group ul,
.field-group ol {
margin-bottom: .5rem;
}

ul + p.meta {
margin-top: 0rem;
}
4 changes: 2 additions & 2 deletions hushline/templates/profile.html
Original file line number Diff line number Diff line change
@@ -113,8 +113,8 @@ <h2 class="submit">
<div class="field-group">
<div class="label">
{{ form[data['name']].label(for=data['name']) }}
{% if not data['field'].required %}
<p class="meta">Optional</p>
{% if data['field'].required %}
<p class="meta">Required</p>
{% endif %}
</div>
<div>