Skip to content
Snippets Groups Projects
Commit bd1bc345 authored by Julian's avatar Julian
Browse files

Set minWidth of topic dynamically

parent 1d712d4b
No related branches found
No related tags found
2 merge requests!352Draft: Resolve "Add dialog with each lesson's students",!350Resolve "Add simple course book list"
...@@ -167,13 +167,16 @@ export default { ...@@ -167,13 +167,16 @@ export default {
? "mdi-note-plus-outline" ? "mdi-note-plus-outline"
: "mdi-note-off-outline"; : "mdi-note-off-outline";
}, },
minWidth() {
return Math.min(this.documentation?.topic?.length || 15, 15) + "ch";
},
}, },
}; };
</script> </script>
<style scoped> <style scoped>
.min-width { .min-width {
min-width: 25ch; min-width: v-bind(minWidth);
} }
.max-width { .max-width {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment